Page 1 of 1

Disable touch

Posted: 01 Aug 2013 20:21
by ahmadmll
Hi friends
Can create an action to disable touch without lock device?

Re: Disable touch

Posted: 17 Jun 2014 13:57
by Akt
+1

Re: Disable touch

Posted: 17 Jun 2014 16:54
by Martin
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

Re: Disable touch

Posted: 18 Jun 2014 01:21
by Akt
Hi martin
Can the back key (hardware button) be disabled??

Re: Disable touch

Posted: 18 Jun 2014 16:13
by Martin
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?

Re: Disable touch

Posted: 19 Jun 2014 02:43
by Akt
Yessss!!!!!