获取手机名称
BluetoothAdapter myDevice = BluetoothAdapter.getDefaultAdapter();String deviceName = myDevice.getName();
上面的代码需要android.permission.BLUETOOTH权限
BluetoothAdapter myDevice = BluetoothAdapter.getDefaultAdapter();String deviceName = myDevice.getName();
上面的代码需要android.permission.BLUETOOTH权限