I start the service as
But when the app is closed from the recent app list the service still runs in the background.
Is there a way I can stop the service when the app is cleared from the recent app list? or any other event or method called when the app is cleared from the recent app list?
B4X:
StartServiceAt("UpdateService", DateTime.Now + 60 * DateTime.TicksPerSecond, True)
But when the app is closed from the recent app list the service still runs in the background.
Is there a way I can stop the service when the app is cleared from the recent app list? or any other event or method called when the app is cleared from the recent app list?