Reputation: 51
I want my app to run in the background or have a broadcast receiver that listens to double tap on home screen launcher. Right now double tap on home screen launcher does nothing but if my app is running in onPause in the background, I want to be able to launch it when user double taps on home screen
Upvotes: 3
Views: 1083
Reputation: 115
I dont think this is possible. Your activty must be in foreground to get touchevents. The only way to get information and start your app when its closed is by using broadcastreceivers.. and there is no broadcast for touchevents. Maybe you can use a service to handle your problem.. take a look here: Creating a system overlay window (always on top)
Upvotes: 3