I am having a class that implements Runnable and inside this class is implemented the gameloop of my game. In few words, I have a stopwatch and I want at a specific time to show a message with options to the user. At this point the user either is winner either has to try again. I know that I cannot start a new activity inside the thread. So, I have the following options:
- Use of a Handler and a Looper to start my new activity
- Kill the thread somehow and start my new activity
- Stop the thread and go to the new activity
Is there any other way? I would like to know the best way to do this.
All comments and responses will be helpful for me, thanks.