Reputation: 110670
In android phone app, I use touch screen to dial a number. And then I place the phone next to my ear for the phone call. And android will show 'Double Tab to unlock' on screen to disable anything activated/touched.
Can you please tell me how can I do that in my own application?
Thank you.
Upvotes: 1
Views: 2546
Reputation: 25058
Set a timer and if there has been no activity for a certain period of time throw a view up over your UI and have it listen for a double tap. Once it registers a double tap have it go away.
Upvotes: 0