Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/217.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android蓝牙友好名称_Android_Bluetooth - Fatal编程技术网

Android蓝牙友好名称

Android蓝牙友好名称,android,bluetooth,Android,Bluetooth,如何使用Android API检索BT查找到的设备的设备名非友好名称?完成socket.connect和socket.accept之后。。ie BT连接已建立。。 你将拥有这个插座。。试试这个 socket.getRemoteDevice().getName(); socket.getRemoteDevice().getAddress(); 您可以从中获得所连接的远程设备的名称

如何使用Android API检索BT查找到的设备的设备名非友好名称?

完成socket.connect和socket.accept之后。。ie BT连接已建立。。 你将拥有这个插座。。试试这个

 socket.getRemoteDevice().getName();
 socket.getRemoteDevice().getAddress();
您可以从中获得所连接的远程设备的名称