Search code examples
androidmauikiosk-mode

How do I disable the popup, when using Android startLockTask() method?


I am using the Android startLockTask() method to enable a kind of soft kiosk mode on the device. However, every time the LockTask starts, a very annoying popup is displayed to the user with the info on how to turn off the LockTask:

I would like to start the LockTask without this popup. Is it possible (without going the whole root, or device admin route)?

I am using .NET MAUI specifically, is that makes any difference in this case


Solution

  • As far as I know it is not possible without rooted device.

    Documentation also mentions popup appearance: https://developer.android.com/reference/android/app/Activity#startLockTask()