Reputation: 67
I am currently (for testing) using
private static String address = "07:12:05:16:66:69";
to connect to my own Bluetooth device, but can't figure out how to enable my app to get the MAC address of a device so that it can connect to others. I have attached my working MainActivity.
Upvotes: 0
Views: 587
Reputation: 11896
You have to go through device discovery process to see what device addresses are around you. See the documentation here: http://developer.android.com/guide/topics/connectivity/bluetooth.html#DiscoveringDevices
Upvotes: 1