Android: ExitOnClose is it working?

You must Login before you can answer or comment on any questions.

While debugging some other issues I came across something that made me wonder if ExitOnClose was working properly. After closing a window with ExitOnClose set to true should I still see my app in the list of running processes? I see my app with 2 Processes and 1 service listed after exiting out of the app. However if I restart the app it does start from the beginning and not resume.

Is this expected?

— asked 1 year ago by Frank A
1 Comment
  • Another test proves that this is related to me starting the billing service (from the InAppBilling module). If I dont start that service then the exit does cleanup the process. Now, I need to figure out how to kill the billing service... ideas?

    — commented 1 year ago by Frank A

1 Answer

Hello,

Android OS manages what app gets killed and which not. Sometimes Android just keeps it in Memory, in case you will start it again, you will get the perception that your app opened faster.

More info here.

Best,

Mauro

— answered 1 year ago by Mauro Parra
answer permalink
4 Comments
  • Thanks for the link, however my testing has showed a clear difference depending on if I had started the billing service or not. If I had not started the service the application was removed from the task manager. If I did start it it was not.

    — commented 1 year ago by Frank A

  • Hello,

    if the module continues doing web communication in the background, Android won't kill it.

    Best,

    Mauro

    — commented 1 year ago by Mauro Parra

  • Yea, I guess the issue is the module doesn't provide a way to end the service. So from what I've seen once I start it my application wont ever end.

    — commented 1 year ago by Frank A

  • Show 1 more comment

Your Answer

Think you can help? Login to answer this question!