How to keep ble android application running in background?

2.8k views Asked by At

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 .

1

There are 1 answers

2
Emil On

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.