I want my ble service run in background even App is closed, that I can still read data. So I used "startService" instead of "bindService". I initialize & connect ble, but I have no idea why my BluetoothGattCallback doesnt work? Here is my code. Thanks.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Your onCharacteristicRead() method is empty. You have to read the received amount of bytes in this method.