P Pendrush Well-Known Member Licensed User Longtime User Feb 10, 2018 #1 Hi all, I have tried every example on forum including all examples from: https://www.b4x.com/android/forum/threads/android-intent-action-media_button-again.48890/#content also tried to change manifest from example provided by google from: https://developer.android.com/reference/android/support/v4/media/session/MediaButtonReceiver.html Without success with BroadcastReceiver library. I'm unable to fire event in service when media button on headphones is clicked. Tested on two devices: Nexus 5 with LineageOS (Android 7.1.2) and Samsung Note 5 (Stock Android 7.0.0). My app have minSdkVersion set to 21 and targetSdkVersion set to 26. Can anyone provide some working example?
Hi all, I have tried every example on forum including all examples from: https://www.b4x.com/android/forum/threads/android-intent-action-media_button-again.48890/#content also tried to change manifest from example provided by google from: https://developer.android.com/reference/android/support/v4/media/session/MediaButtonReceiver.html Without success with BroadcastReceiver library. I'm unable to fire event in service when media button on headphones is clicked. Tested on two devices: Nexus 5 with LineageOS (Android 7.1.2) and Samsung Note 5 (Stock Android 7.0.0). My app have minSdkVersion set to 21 and targetSdkVersion set to 26. Can anyone provide some working example?
P Pendrush Well-Known Member Licensed User Longtime User Feb 12, 2018 #2 Sorry for bump, I really need to solve this, any help is highly appreciated. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 12, 2018 #3 This is a problematic feature. If you find a Java code that is not implemented in one of the related threads then I can help you port it. Upvote 0
This is a problematic feature. If you find a Java code that is not implemented in one of the related threads then I can help you port it.