开发者

Android bluetooth friendly name

How can i retrieve the device name (not friendly name) of the BT di开发者_JS百科scovered device using Android API's?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜