lemonisdead Well-Known Member Licensed User Longtime User Jan 24, 2014 #1 Hello, Is it possible (using Reflection for example) to retrieve the MAC address of the current connected device (without to disconnect/connect) ? This is to retrieve the name of my bluetooth car device. Many thanks
Hello, Is it possible (using Reflection for example) to retrieve the MAC address of the current connected device (without to disconnect/connect) ? This is to retrieve the name of my bluetooth car device. Many thanks
Erel B4X founder Staff member Licensed User Longtime User Jan 26, 2014 #2 You can intercept the ACL_CONNECTED event: http://www.b4x.com/android/forum/threads/detect-if-your-are-connected-to-bluetooth.16555/#post-94499 You can extract the MAC address from the intent data. Upvote 0
You can intercept the ACL_CONNECTED event: http://www.b4x.com/android/forum/threads/detect-if-your-are-connected-to-bluetooth.16555/#post-94499 You can extract the MAC address from the intent data.
lemonisdead Well-Known Member Licensed User Longtime User Jan 29, 2014 #3 Hello Erel, I did the test and it works fine of course till the app is installed before the Bluetooth connection. Reason why for the moment I have to disconnect/reconnect to be able to retrieve the MAC address and then the name of the device. I am really not good at crawling the developer.android's documentation and understanding how things a organized. I hoped to be able to use "android.bluetooth.device.extra.NAME" (source). Upvote 0
Hello Erel, I did the test and it works fine of course till the app is installed before the Bluetooth connection. Reason why for the moment I have to disconnect/reconnect to be able to retrieve the MAC address and then the name of the device. I am really not good at crawling the developer.android's documentation and understanding how things a organized. I hoped to be able to use "android.bluetooth.device.extra.NAME" (source).
Erel B4X founder Staff member Licensed User Longtime User Jan 29, 2014 #4 Not sure that I understand. Were you able to intercept this intent? Upvote 0