Am Montag, den 14.03.2011, 07:44 -0500 schrieb TreKing:
> Well, a dialog is not going to be displayed if you don't tell the
> system to display it, which is done with the show() method.   
> Can you post the examples you got that from? Because that's wrong in
> so many ways.   
http://developer.android.com/guide/topics/ui/dialogs.html#AlertDialog
Its the Paragraph "Adding a list".

> 1 - Never use getApplicationContext() - it's utterly pointless and
> just does not work with dialogs.
How then obtain the Context to display it?

>  2 - Call show() on the Dialog you create to actually show it.
In the docs i found:
AlertDialog.Builder.create();
also shows the Dialog.

Thanks
Daniel

-- 
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

Reply via email to