This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is it possible to start service/activity when turn on ble device?

I am develop a android application with BLE.

My bluetooth device can be searched by bluetooth scanning of android.

And my application can connect with the bluetooth device by connectGatt()

When my application is running(even there's only foreground service running), the connection is continue. (I use autoConnect=true)

But even if my application is not running, I hope Android OS will try to connect if it finds my Bluetooth device and start foreground service or activity of my application.

is that possible?

In the window of bluetooth device list found by Android OS, I can find my bluetooth device. But if i touch it, they say "an app is needed to use this device" right now.

Please tell me how to let Android OS try to connect with my bluetooth device whether my application is running or not.

Parents Reply Children
No Data
Related