What are the values of EXTRA_KEY_EVENT from intent ACTION_MEDIA_BUTTON that can be received by a Broadcast Receiver?
Does it including something to identify if the volume buttons are pressed?
Are the volume buttons even media buttons?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
“The “volumn up and down button” is not the media button. There is no broadcast Intent for the volume rocker, so your service will not be able to find out about such presses on its own. An activity can watch for volume button KeyEvents via onKeyDown().”
how to handle media button to stop a song?