have you tried

Dialog pg=new ProgressDialog(this)

then return pg ?

just to try it... and UP this thread...:)

On 28 Ott, 14:27, Greg Donald <gdon...@gmail.com> wrote:
> On Mon, Oct 26, 2009 at 9:49 PM, Greg Donald <gdon...@gmail.com> wrote:
> > I'm having problems getting showDialog() to show anything.
>
> > I have this for my onCreateDialog() callback:
>
> > private static final int ID_DIALOG_X = 1;
>
> > protected Dialog onCreateDialog(int id) {
> >  if (id == ID_DIALOG_X) {
> >    ProgressDialog pg = new ProgressDialog(this);
> >      pg.setMessage("Loading..");
> >      return pg;
> >  }
> >  return super.onCreateDialog(id);
> > }
>
> > And then I'm calling it like this:
>
> > showDialog(ID_DIALOG_X);
>
> > But nothing shows up, no errors either.
>
> > Using ddms and Log.i() I can see my onCreateDialog() is being
> > executed, the new progress dialog gets created, but then nothing shows
> > up.
>
> > Any ideas?  TIA.
>
> Anyone?
>
> --
> Greg Donaldhttp://destiney.com/
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to