I wrote a message specifically in the kiosk mode on Android - it was just "setting the task."
http://www.sureshjoshi.com/mobile/android-kiosk-mode-without-root/
- Create a DeviceAdminReceiver and put it in your manifest
- Then run dpm to access the admin device.
adb shell dpm set-device-owner com.sureshjoshi.android.kioskexample / .AdminReceiver
- Make sure you own the device in the app and you go racing.
There is a lot of work to do this, however, once you make the template, you end up using this snippet to enable and disable.
private void enableKioskMode(boolean enabled) { try { if (enabled) { if (mDpm.isLockTaskPermitted(this.getPackageName())) { startLockTask(); mIsKioskEnabled = true; mButton.setText(getString(R.string.exit_kiosk_mode)); } else { Toast.makeText(this, getString(R.string.kiosk_not_permitted), Toast.LENGTH_SHORT).show(); } } else { stopLockTask(); mIsKioskEnabled = false; mButton.setText(getString(R.string.enter_kiosk_mode)); } } catch (Exception e) {
source share