简体   繁体   中英

How to get bluetooth device connecting in Android?

How to get name and address of bluetooth device connecting with my device in android when start my activity ? Not get bluetooth device when found .

ArrayAdapter.add(device.getName() + "\n" + device.getAddress());

如果您已经设置了蓝牙设备和阵列,那么它将添加到列表视图中。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM