Code of the setlX version for Android.