BroadcastReceiver for ACTION_MEDIA_BUTTON not working
I tested this on a Samsung Galaxy S5 with Android 4.4.2. So what is important and what is not mentioned in other posts: Register the receiver in the AndroidManifest.xml inside the application tag but outside from every activity tag. Your receiver Broadcastreceiver need to be public and static One activity need to register an MediaButtonEventReceiver … Read more