1

i want to launch my application when the volume turned to very low..

Edit:

Or my application should run in background and it should listen to the volume changes.. I think it sounds good...

Is it possible to do that?

vnshetty
  • 20,051
  • 23
  • 64
  • 102

1 Answers1

3

Use registerMediaButtonEventReceiver with a BroadcastReceiver that handles ACTION_MEDIA_BUTTON.

This thread explains it: Volume change listener?

Community
  • 1
  • 1
Theo
  • 5,963
  • 3
  • 38
  • 56