N noeleon Active Member Licensed User Longtime User Jul 7, 2020 #1 How to detect Bluetooth headset keypress? I tried this Code: Copy Sub Service_Start (StartingIntent As Intent) Broadcast.addAction("android.intent.action.MEDIA_BUTTON") Broadcast.SetPriority(2147483647) Broadcast.registerReceiver("") End Sub from the example in BroadcastReceiver library but it does not work.
How to detect Bluetooth headset keypress? I tried this Code: Copy Sub Service_Start (StartingIntent As Intent) Broadcast.addAction("android.intent.action.MEDIA_BUTTON") Broadcast.SetPriority(2147483647) Broadcast.registerReceiver("") End Sub from the example in BroadcastReceiver library but it does not work.
Erel B4X founder Staff member Licensed User Longtime User Jul 7, 2020 #2 It is more complicated and the behavior depends on the Android version. Check this thread: https://www.b4x.com/android/forum/threads/mediasessions.62525/ Upvote 0
It is more complicated and the behavior depends on the Android version. Check this thread: https://www.b4x.com/android/forum/threads/mediasessions.62525/
B blikkk New Member Jul 8, 2020 #3 noeleon said: How to detect Bluetooth headset keypress? I tried this Code: Copy Sub Service_Start (StartingIntent As Intent) Broadcast.addAction("android.intent.action.MEDIA_BUTTON") Broadcast.SetPriority(2147483647) Broadcast.registerReceiver("") End Sub from the example in BroadcastReceiver library but it does not work. Click to expand... I struggled with it for a week, it doesn’t work at all. Android 10. Play store, MediaButton Interceptor, working Android all version. Please, help! Upvote 0
noeleon said: How to detect Bluetooth headset keypress? I tried this Code: Copy Sub Service_Start (StartingIntent As Intent) Broadcast.addAction("android.intent.action.MEDIA_BUTTON") Broadcast.SetPriority(2147483647) Broadcast.registerReceiver("") End Sub from the example in BroadcastReceiver library but it does not work. Click to expand... I struggled with it for a week, it doesn’t work at all. Android 10. Play store, MediaButton Interceptor, working Android all version. Please, help!
B blikkk New Member Jul 9, 2020 #4 Erel said: It is more complicated and the behavior depends on the Android version. Check this thread: https://www.b4x.com/android/forum/threads/mediasessions.62525/ Click to expand... How register Broadcast Receiver for media button in Oreo? I have a problem with the new Android version, that is 8.0 (Oreo). I have to register a broadcast and I do this with this code: // android.intent.action.MEDIA_BUTTON IntentFilter filter = new stackoverflow.com Please, create B4A Upvote 0
Erel said: It is more complicated and the behavior depends on the Android version. Check this thread: https://www.b4x.com/android/forum/threads/mediasessions.62525/ Click to expand... How register Broadcast Receiver for media button in Oreo? I have a problem with the new Android version, that is 8.0 (Oreo). I have to register a broadcast and I do this with this code: // android.intent.action.MEDIA_BUTTON IntentFilter filter = new stackoverflow.com Please, create B4A