Disable touch

Post your questions and help other users.

Moderator: Martin

Post Reply
ahmadmll
Posts: 69
Joined: 06 Jul 2013 15:02

Disable touch

Post by ahmadmll » 01 Aug 2013 20:21

Hi friends
Can create an action to disable touch without lock device?

Akt
Posts: 133
Joined: 25 May 2014 08:57

Re: Disable touch

Post by Akt » 17 Jun 2014 13:57

+1

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Disable touch

Post by Martin » 17 Jun 2014 16:54

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

Akt
Posts: 133
Joined: 25 May 2014 08:57

Re: Disable touch

Post by Akt » 18 Jun 2014 01:21

Hi martin
Can the back key (hardware button) be disabled??

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Disable touch

Post by Martin » 18 Jun 2014 16:13

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?

Akt
Posts: 133
Joined: 25 May 2014 08:57

Re: Disable touch

Post by Akt » 19 Jun 2014 02:43

Yessss!!!!!

Post Reply