0

我正在开发安卓应用程序。在这个应用程序中,我必须连接到 ble 设备。当应用程序处于后台时,我希望应用程序连接到 ble 设备。

4

1 回答 1

2

答案是在使用 BLE 的进程中至少有一个前台服务https://developer.android.com/guide/components/services.html#Foreground。这将使 Android 让您的流程保持活力。

于 2017-09-08T07:52:52.087 回答