I am building a game-like application and I've been reading about all the different approaches of running things with Services in background, foreground, Alarms and so on, and I am a bit confused.
My app would go like this (example):
- user presses a button in Main, then he can close the app
- after 30 minutes Activity1 opens up
- user finishes whatever he needs to do in that activity, which triggers the next activity to start after 2 hours
- after 2 hours Activity2 opens up
- user finishes whatever he needs to do there as well, triggering the next one
- after a day Activity3 opens up, and so on
What would be the best approach? Have a service running continuously to open those activities, or get a new alarm set up to start every time the user finishes one of the activities?