On Mon, Aug 9, 2010 at 1:20 PM, jef3189 <[email protected]> wrote: > The problem I'm having is that when the screen switches orientation > (landscape to portrait etc.) the dialog causes a runtime exception and the > box closes. >
You need to use showDialog() to have th Activity manage the dialog for you or keep track of the dialog and dismiss() it in onSaveInstanceState() and re-show it in onRestoreInstanceState(). The former is usually a better option. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

