Hi All,
I have looked at the forums regarding services but I am a little confused, especially with the changes with Android 8.
What I am trying to accomplish to create a service that runs in the background (and has to start on boot) and scans for BLE beacons every 5 minutes. I am happy with the beacon part and have written the software using a sticky service and a timer to scan the beacons (running on Android 4 to 6).
The problem is the service gets destroyed and restarts 10 to 20 minutes later.
Could someone please tell me what type of service I should use please?
Thanks for any help.
Len
I have looked at the forums regarding services but I am a little confused, especially with the changes with Android 8.
What I am trying to accomplish to create a service that runs in the background (and has to start on boot) and scans for BLE beacons every 5 minutes. I am happy with the beacon part and have written the software using a sticky service and a timer to scan the beacons (running on Android 4 to 6).
The problem is the service gets destroyed and restarts 10 to 20 minutes later.
Could someone please tell me what type of service I should use please?
Thanks for any help.
Len