In my owner device app on an Android 6.0 device, I called setLockTaskPackages() , and then startLockTask() as follows:
... mDPM.setLockTaskPackages("com.foo.myapp"); ... startLockTask();
It works on screen binding when installing the application, but after restarting the device and launching the application, repeated clicking on the screen is interrupted with an "uninsulated" toast.
Thank you in advance for any advice.
source share