In a different thread, Erel wrote:
I have been using Exit.Application in one of my apps and indeed sometimes the app restarts. I then changed this into Activity.Finish and this problem vanished.
However, there are some drawbacks with Activity.Finish which creates some problems such as app and some resources not being closed immediately and therefore, although not recommended, I would much prefer using Exit.Application.
Can someone explain to me why the OS might try to restart the app (process), technically speaking when using Exit.Application? Is it due to some message-queue or similar? Any way to change this behavior?
I recommend you to call Activity.Finish instead. ExitApplication kills the process. As you see the OS might try to restart it.
I have been using Exit.Application in one of my apps and indeed sometimes the app restarts. I then changed this into Activity.Finish and this problem vanished.
However, there are some drawbacks with Activity.Finish which creates some problems such as app and some resources not being closed immediately and therefore, although not recommended, I would much prefer using Exit.Application.
Can someone explain to me why the OS might try to restart the app (process), technically speaking when using Exit.Application? Is it due to some message-queue or similar? Any way to change this behavior?