android bluetooth 蓝牙4.0 +HC-08模块

最近的一个项目,使用的硬件是HC-08蓝牙模块,他是一个蓝牙4.0的设备。

使用registerReceiver 时 一直不起作用,第一次使用也找不到头绪,调试了半天,发现需要在AndroidManifest.xml 注册服务。

<service android:name="包名.BluetoothLeService" android:enabled="true"></service>

原文地址:https://www.cnblogs.com/makeup/p/7027225.html