On Sat, Mar 26, 2011 at 2:32 PM, Archit Jain <[email protected]> wrote:

> Dialog alertDialog = new Dialog(getApplicationContext());
>

Never use getApplicationContext() - it's pointless and doesn't work for
Dialogs. I'm surprised you're seeing anything.

But it shows a titlebar with no text in it. How can I avoid that?
>

If you don't specify a title, none will be shown. I do this *a lot*.

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

Reply via email to