I'm making an app which sends the location when the button is pressed.Its working fine with button on layout,but i want to do that part with DOUBLE press power button. Please suggest me the way to do. And also how to use power button double press.
Asked
Active
Viewed 1,792 times
0
-
1http://stackoverflow.com/questions/15292376/how-to-start-the-app-on-power-button-press?rq=1 this link may give you some idea – Auto-Droid ツ Dec 26 '13 at 12:22
-
i tried this but it gives Fatal Error and app got crashed. – Yushi Dec 27 '13 at 07:15
-
@Yushi have you done with this? i am in same boat ... – Sun Mar 10 '14 at 10:07
1 Answers
0
I am looking to do the exact same thing: start the application main function when double pressing the power button. Have you found a solution ?
EDIT: There's a solution in another post.
I don't find interesting of sending back information to the service: I start the activity directly in the receiver. That works well ... at least for me ! ! ;-)

Community
- 1
- 1

ComputingFroggy
- 107
- 5