Android的 - 如何启用蓝牙永远吗?蓝牙、Android

2023-09-05 02:56:24 作者:人生没有撤回键

关于Android的蓝牙发展的两个问题:

有没有一种方法,使蓝牙是始终打开(我会在我的应用程序很长的设备发现阶段)中的Andr​​oid?据我所看到的默认值是一个数,从120秒下降。

是否存在任何开源蓝牙API实现?

解决方案

蓝牙实现现在可在Android 2.0 API。 请参见这和的这个。

Two question on Bluetooth development on Android:

Is there a way to enable Bluetooth to be always on (I might have a long device discovery phase in my application) in Android? As far as I can see the default value is a count down from 120s.

Android Bluetooth 蓝牙开启源码分析

Does it exist any open source Bluetooth API implementations?

解决方案

Bluetooth implementation is now available in the Android 2.0 API. See this and this.

 
精彩推荐