0

I am making an application that works based on volume button press, when application is on foreground it detects volume up button pressing and do something. it does not requires to keep the screen on while pressing the button. Is there any way to do this ?

programr
  • 25
  • 8

1 Answers1

1

Implement a broadcast reciever which will recive the volume up button action and in its onRecieve() implement your logic.

therealprashant
  • 701
  • 15
  • 27