Hi friends
Can create an action to disable touch without lock device?
Disable touch
Moderator: Martin
Re: Disable touch
Hi,
To my knowledge there's no official API to disable touch entirely.
You could create a widget (menu->Custom Widgets) that consists of a single transparent background color and use an action Show Custom Widget Overlay to show this widget stretched over the entire screen. Check option Clickable in the action to make sure that the widget blocks the input to the underlying apps.
Please ensure that you have a way to hide the widget with action Hide Custom Widget Overlay, otherwise you might lock yourself out. The home, recent apps and back key can not be blocked using this method.
Regards,
Martin
To my knowledge there's no official API to disable touch entirely.
You could create a widget (menu->Custom Widgets) that consists of a single transparent background color and use an action Show Custom Widget Overlay to show this widget stretched over the entire screen. Check option Clickable in the action to make sure that the widget blocks the input to the underlying apps.
Please ensure that you have a way to hide the widget with action Hide Custom Widget Overlay, otherwise you might lock yourself out. The home, recent apps and back key can not be blocked using this method.
Regards,
Martin
Re: Disable touch
Hi martin
Can the back key (hardware button) be disabled??
Can the back key (hardware button) be disabled??
Re: Disable touch
Not using this method, the app behind the transparent widget will receive the back key.
Blocking the back key would require to display an activity that catches the key but this will still not allow to block the home and recents keys. Would it be sufficient to block the back-key for your use case?
Blocking the back key would require to display an activity that catches the key but this will still not allow to block the home and recents keys. Would it be sufficient to block the back-key for your use case?