On Oct 22, 2:26 pm, TreKing <[email protected]> wrote: > On Fri, Oct 22, 2010 at 4:20 PM, Nathan <[email protected]> wrote: > > Can I fix it? > > Did you try with showDialog()?
No I haven't, but it looks promising. > Also, why show a dialog on each onResume()? Sounds like it could be > annoying, without knowing more about your use case. > I only intend to show it once. I need the user to make one simple choice, the first time the app is run, then mark it done. But if it is invisible and frozen, they won't make that choice. On Oct 22, 2:25 pm, Mark Murphy <[email protected]> wrote: > Use a boolean flag to skip the dialog if onCreate() was called. In > onResume(), if the flag says skip, reset the flag; otherwise, show the > dialog. > So essentially, the first time OnResume is called after onCreate, don't do a dialog? This might work, but I'm thinking there might be failure cases with counting on onResume to be called exactly two times. In fact, if I choose preferences from the menu and start a PreferenceActivity, I can also trigger this failure without onCreate being called. I'll try the showDialog method first. Nathan -- 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

