Hi,

Does anybody have any insight as to why a game appliction would
restart when exiting with the back button.  It does not automatically
restart when using the Home button
to exit and this only occurs one time (after the second attempt to
exit with the back button, it exits cleanly).  Also, I can reproduce
this consistently on the Motorola Droid,
but have not been able to reproduce on the G1 or the emulator running 2.0.

I've tried changing the launchMode of my activities, but have not
found something that works. These are my activities:

1. Splash Screen, Single Instance, Main/Launcher
2. Help, Single Instance
3. High Score, Single Top
4. Preferences, Single Top
5. Options, Single Top
6. Game, Single Top, with SurfaceView

The steps to reproduce the problem are:
1. User starts application, launching Splash Screen Activity
2. User starts game, launching Game Activity
3. Game Activity launches Options Activity (for result)
4. Game Activity restarts with result and game begins.
5. Pressing Back Button returns to Splash Screen Activity
6. Pressing Back Button again, briefly shows home screen, then
relaunches Game Activity which starts Options Acitivity
7. Pressing Back Button again finally shows the home screen

Any help would be greatly appreciated.

-Henry

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to