The purpose of MediaButtonReceiver in Android API 21+
When handling mediaButton events originating from remote controls or headsets, the Android documentation states here:
When handling mediaButton events originating from remote controls or headsets, the Android documentation states here: