简体   繁体   中英

Android bluetooth friendly name

如何使用Android API检索发现的BT设备的设备名称(非友好名称)?

After the socket.connect and socket.accept is been done.. ie BT connection established.. You will be having the socket.. Try this..

 socket.getRemoteDevice().getName();
 socket.getRemoteDevice().getAddress();

from this you can get the name of the remote device which you are connected with.

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