Hi everybody,
I have the need to keep a service responsive also if it's not running in foreground.
I have put my code in STARTER service and marked it with :
When the user choses to terminate the App, I terminate main.activity and leave Starter active.
If the phone goes sleep and I start again using the icon, the starter service starts, but main activity doesn't. With no sticky label seems to run properly.
Is using STARTER sticky the correct aproach to my need of keep it running?
Thank you
Mauro
I have the need to keep a service responsive also if it's not running in foreground.
I have put my code in STARTER service and marked it with :
B4X:
#StartCommandReturnValue: android.app.Service.START_STICKY.
If the phone goes sleep and I start again using the icon, the starter service starts, but main activity doesn't. With no sticky label seems to run properly.
Is using STARTER sticky the correct aproach to my need of keep it running?
Thank you
Mauro
Last edited: