Lock your phone with your favourite app still running
Disable touch screen and buttons while using your app
- use your favourite app on a locked phone preventing accidental touch of screen or buttons
- continue using your app with phone in a pocket
- let your child watch videos without unintended app stopping
Usage
Run this app, switch to your app and while it's running on screen:
-hold(not regular short press) "Power" button for approx. 1-2 seconds till screen lock - like You do to display Power off dialog(requires app enabled in accessibility settings on Android 9 and above)
- use proximity or shake sensor locking / unlocking
Your phone is effectively locked and your app is STILL RUNNING;)
Touchscreen and navigation buttons ale blocked to prevent accidental touch
To unlock simply hold "Power" again or use sensors or use regular short presses to put device to sleep/wake.
If "Home","Back" or "Menu" or other buttons wouldn't block try enabling "NoPause Lock" service in Android accessibility settings.
If any of the navigation buttons is still active after locking and you've got Lolipop (ANDROID 5.0) or higher you can combine this app with "screen pinning" Android feature to prevent your app being switched over by accidental button press
“This app uses Accessibility services.”
This optional service helps holding nad using device for people with grip disability or finger trembling and such by disabling hardware and soft buttons and preventing unintended touches on some devices during lock.
This service doesn't gather or forward any data.
!!! Make sure "Display pop-up window" , "Draw over other apps" or such is allowed in app permissions !!!
Some customised non standard firmware may prevent Power button activation, sensor activation methods should work though.