user8030518
user8030518

Reputation:

How to keep ble android application running in background?

I am working on the android application. In this application i have to connect to the ble device. I want the application connected to the ble device when the application is in background .

Upvotes: 1

Views: 3157

Answers (1)

Emil
Emil

Reputation: 18472

The answer is to have at least one Foreground Service https://developer.android.com/guide/components/services.html#Foreground in your process that uses BLE. That will make Android keep your process alive.

Upvotes: 4

Related Questions