Android – Bluetooth Device Button Press Should Trigger Onclick Listener in the app – iTecNote

androidandroid-broadcastreceiverbluetoothbroadcastreceiver

I’m trying to make an app which triggers an on click listener in the app when a button is pressed on the paired bluetooth device. After googling for several hours I think I am unable to send keycode of the button of the bluetooth device to broadcast receiver where if the keycode matchs then i can call the on click listener or maybe my approach and understanding is wrong so Could anyone please guide me or point me towards the right approach? Thanks in advance

Bluetooth device: Bluetooth Selfie Remote AB shutter 3

I want something like this
http://www.barbatricks.com/en/android-en/remap-ab-shutter-3-selfie-remote/

I have tried the following links for reference but no success

How to capture key events from bluetooth headset with android

BroadcastReceiver for ACTION_MEDIA_BUTTON not working

How to detect bluetooth call/media button press in android app

http://blog.phonedeveloper.com/2015/04/how-to-receive-bluetooth-broadcast.html

Alternate Text Gọi ngay