0

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.

Yushi
  • 416
  • 6
  • 24

1 Answers1

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