1

I wanted to obtain the bluetooth MAC address of my android device, which is currently running the app, is there anyway to obtain it?

I am doing a project and I need the app to obtain my own device bluetooth address instead of going to the settings to view it manually.

Thanks for any help in advance.

Taifun
  • 6,165
  • 17
  • 60
  • 188
Calvin
  • 41
  • 1
  • 12

1 Answers1

0

From here: Access to the mac address has been deliberately removed:

To provide users with greater data protection, starting in this release, Android removes programmatic access to the device’s local hardware identifier for apps using the Wi-Fi and Bluetooth APIs.

(from Android 6.0 Changes)

For App Inventor you could write your own extension and create a block yourself using this workaround.

More information about how to create an extension see here.
However that will be more advanced and will require some Java skills...

Community
  • 1
  • 1
Taifun
  • 6,165
  • 17
  • 60
  • 188
  • The wifi extension returns a wifi mac address. Is there any relation to a phone wifi and bluetooth mac address? can i get the bluetooth mac address by manipulating the wifi mac address? – Calvin Nov 05 '16 at 05:22
  • You are right, my Wifi extension can only provide the Wifi MAC address. To get the Bluetooth MAC address see my updated answer. – Taifun Nov 05 '16 at 23:03
  • see my new [bluetooth extension](https://puravidaapps.com/bluetooth.php) to get the Bluetooth MAC address – Taifun Nov 07 '16 at 14:59