[android-developers] Re: Invisible AlertDialog?
On Oct 22, 2:26 pm, TreKing <treking...@gmail.com> wrote:
> On Fri, Oct 22, 2010 at 4:20 PM, Nathan <critter...@crittermap.com> 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 <mmur...@commonsware.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home