R Rainer@B4A Member Licensed User Longtime User Jan 12, 2014 #1 Hi, for my outdoor app I need some external pushbuttons. I believe the bluetooth headset adapters below will give me this functionality. http://www.pearl.de/a-HZ2037-4041.shtml http://www.sonymobile.com/de/products/accessories/stereo-bluetooth-headset-sbh20 It's easy to find and connect the device with BluetoothAdmin + Serial. They even start communication be sending "AT+BRSF=25" to my app. Is there an expert in our community who knows the protocol and can help me to go on ? Another approach may be emulate an audio app like jukebox, because they work perfectly with these devices. But the B4A MediaPlayer don't fit. Thanks Rainer
Hi, for my outdoor app I need some external pushbuttons. I believe the bluetooth headset adapters below will give me this functionality. http://www.pearl.de/a-HZ2037-4041.shtml http://www.sonymobile.com/de/products/accessories/stereo-bluetooth-headset-sbh20 It's easy to find and connect the device with BluetoothAdmin + Serial. They even start communication be sending "AT+BRSF=25" to my app. Is there an expert in our community who knows the protocol and can help me to go on ? Another approach may be emulate an audio app like jukebox, because they work perfectly with these devices. But the B4A MediaPlayer don't fit. Thanks Rainer
Erel B4X founder Staff member Licensed User Longtime User Jan 12, 2014 #2 You should use an intent filter for that as the headset events are handled by the system. Start with this tutorial: Intent Filters - Intercepting SMS messages in the background The action should be one of these actions: http://developer.android.com/refere...etoothHeadset.html#ACTION_AUDIO_STATE_CHANGED Upvote 0
You should use an intent filter for that as the headset events are handled by the system. Start with this tutorial: Intent Filters - Intercepting SMS messages in the background The action should be one of these actions: http://developer.android.com/refere...etoothHeadset.html#ACTION_AUDIO_STATE_CHANGED
R Rainer@B4A Member Licensed User Longtime User Jan 12, 2014 #3 Many Thanks OK, I will try to improve my knowledge. Upvote 0