Reputation:
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
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