I am porting an existing Windows 8 / iOS app to Android.
Of course, I want to re-use as much of the program logic / control flow as possible.
Unfortunately, Android has this strange concept of Activities.
(I only use one single activity because the app is a game.)
The problem I have is the following:
I could solve the problem by
AND at the same time
The later one is my question: How do I make sure that the app process is killed whenever there are no activities alive? (In my understanding, it is not impossible, unfortunately, that empty processes exist)