Hi,
I have a problem that is not so usual.
There are a few activities in my app, and a Starter service. From time to time, my service starts an Activity, and that is fine, working 100%.
The problem is when the user opens the "recent apps" Android list and closes my app by sliding it off the list.
The result is: My app is closed, but my service is still running. Then when the Service tries to open the activity, it comes all blank, with 0 responses, doesn't trigger "Activity_Create" nor "Activity_Resume".
Is there any solution for that? Open an activity of my app after it is closed?
IF the answer is NO, then is it possible to detect that the user is closing the app from the Android apps list? Then i could also stop the service.
Or, how can i test if my app is still alive before trying to start the activity again from the service?
The last chance would be to hide the app on the active apps list, then the user could not close it. Is it possible? How?
Waiting for some help.
THANKS!
I have a problem that is not so usual.
There are a few activities in my app, and a Starter service. From time to time, my service starts an Activity, and that is fine, working 100%.
The problem is when the user opens the "recent apps" Android list and closes my app by sliding it off the list.
The result is: My app is closed, but my service is still running. Then when the Service tries to open the activity, it comes all blank, with 0 responses, doesn't trigger "Activity_Create" nor "Activity_Resume".
Is there any solution for that? Open an activity of my app after it is closed?
IF the answer is NO, then is it possible to detect that the user is closing the app from the Android apps list? Then i could also stop the service.
Or, how can i test if my app is still alive before trying to start the activity again from the service?
The last chance would be to hide the app on the active apps list, then the user could not close it. Is it possible? How?
Waiting for some help.
THANKS!
Last edited: