When I open my app it starts as it should but when I select another app and spend some time in the other app and then, when I come back to my app it restarts. I am not closing the app, in other words it is still on "hold" (I am sure there is a official name for this).
How do I prevent the restart?
Here is an example of what I mean by on "hold"