2014-08-28 24 views

回答

0

使用BluetoothManager此任務:

List<BluetoothDevice> connectedDevices = this.getSystemService(Context.BLUETOOTH_SERVICE) 
              .getConnectedDevices(BluetoothProfile.GATT); //or BluetoothProfile.GATT_SERVER 

for(BluetoothDevice bd : connectedDevices){ 
    String remoteName = bd.getName(); 
//do something 
} 
相關問題