> > > I didn't know about the deprecation, but now that you mention it the > showDialog(int) method is deprecated, but they've replaced it with > showDialog(int, Bundle), which should work the same way. > > Ah, ok yeah I see that method. According to the docs, onCreateDialog should only be called ONCE in the lifetime of the dialog. (if I read correctly.) In your case, it may be getting called more than once hence creating a new dialog on each rotation and having android hang on to the reference.
>From a quick google search I came accross this: http://androidzteam.com/wpv/?p=44 > The benefit to using showDialog is that it handles rotation for me, so > the dialog is still there even when the user rotates the phone. And no > extra code on my part. > > Ah ok, yeah seems like that's the way to go to avoid dealing with dialogs too much. > What benefit is there to keeping track of your own references? > > Well, for one thing I can close the dialog in any other method I choose. I also keep full control of the lifetime of the dialog and don't have to worry about any leaks or bugs. However, I agree that for your use case perhaps onCreateDialog might be simpler. Try the link above and see if that answers your question. > And why aren't my replies showing up in the thread? Did I reply > directly to your email instead of the group? > > They show up just fine for me, perhaps someone with more experience with onCreateDialog can help. > -- > 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 > -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/ http://www.youtube.com/user/revoltingx -- 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

