0
我想知道有沒有什麼方法來確定通過藍牙編程連接到我的android設備的智能手機的模型?我知道如何在兩個Android設備之間建立藍牙連接,但是如何請求智能手機模型的信息?謝謝。如何確定連接到我的設備的智能手機的型號
我想知道有沒有什麼方法來確定通過藍牙編程連接到我的android設備的智能手機的模型?我知道如何在兩個Android設備之間建立藍牙連接,但是如何請求智能手機模型的信息?謝謝。如何確定連接到我的設備的智能手機的型號
使用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
}