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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.