I am wondering
what might be the best method for going back to the MainMenu Activity from a graphical thread.
A brief summary of my configuration :
- MainMenu Activity launches a SubActivity that in turns creates a SurfaceView with a thread (for the graphic rendering).
When the game is over, I display some information from the thread and would like go back to the MainMenu Activity when the screen is touched (like when the user presses the BACK key).
- Actually, I forward touch events from the SurfaceView to the Thread. Returning to the MainMenu Activity from SurfaceView should be quiet good too but I have no idea on how to do it.
Actually I can't figure out how to do it without putting in place some message handler (seems quiet tricky).