app/src/main/java/safeluck/drive/evaluation/fragment/BleScanFragment.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
app/src/main/java/safeluck/drive/evaluation/fragment/BleScanFragment.java
@@ -223,8 +223,13 @@ switch (action) { case BluetoothDevice.ACTION_FOUND: final BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); if (device.getName() != null && device != null) { if (device != null) { if (device.getName() != null ){ Log.i(TAG, "device Name: " + device.getName()); }else{ Log.i(TAG, "device Name: 未知" ); } Log.i(TAG, "device Addr: " + device.getAddress()); _mActivity.runOnUiThread(new Runnable() {