How can I detect if a buton, on a pair of headphones, was pressed while running an Android app? Music applications use to this button to stop, play, pause music, etc.
D
It's the ACTION_MEDIA_BUTTON intent.