gpt4 book ai didi

安卓 3.1 : getDefaultAdapter() returns null in android

转载 作者:行者123 更新时间:2023-12-01 23:19:16 24 4
gpt4 key购买 nike

mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
if (mBluetoothAdapter == null) {
Log.i("Error", "Bluetooth isn't supported");
return;
}

当我在模拟器上运行此代码时,它会打印“不支持蓝牙”。
有帮助吗?

最佳答案

模拟器不支持蓝牙。但是,有人创建了一个解决方法,请参阅 this post ,也许对您有用。

关于安卓 3.1 : getDefaultAdapter() returns null in android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6174473/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com