capturing media button (volume up and down) events in a service

melamoud

Active Member
Licensed User
hi,

is it possible to call my service start method when volume up is pressed ?
I tried register to android.intent.action.MEDIA_BUTTON
but it did not worked.

thanks
 

melamoud

Active Member
Licensed User
hi,

is it possible to call my service start method when volume up is pressed ?
I tried register to android.intent.action.MEDIA_BUTTON
but it did not worked.

thanks

the onlything that seems to work (and its a hack) is listening to
android.media.VOLUME_CHANGED_ACTION

anyone know of a better way ?
 
Upvote 0
Top