【发布时间】:2015-10-15 07:08:10
【问题描述】:
我升级到 Android 6,但我使用蓝牙的应用程序无法使用这个新的 API 版本。 Play Store 上的应用程序也存在同样的问题:Bluetooth spp tools pro(用于查看蓝牙是否正常工作的好应用程序)无法发现设备。
问题似乎出在蓝牙发现中:
BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
mBluetoothAdapter.startDiscovery()
Log.i("BLUETOOTH", String.valueOf(mBluetoothAdapter.isDiscovering())); // Return false
我的应用程序在 Android 4/5 上运行良好,我遵循了:http://developer.android.com/guide/topics/connectivity/bluetooth.html
【问题讨论】:
-
您在哪个设备上遇到此问题?哪个关系?我在 Nexus 5 上做