Anyone other feedback on this? I'm confused as to why this isn't
simpler.. All I want to do is display the ProgressDialog until the
task is complete, then get rid of it.. Anyone would think this was
trivial.

No matter what I do I'm unable to remove the dialog once the screens
orientation has altered.

Thanks for any replys

On 7 Nov, 14:53, Lee Jarvis <[email protected]> wrote:
> I apologise if I'm missing something or just being stupid.. But i've
> tried the following..
>
>     @Override
>     public void onDestroy() {
>         dismissDialog(DIALOG_TASKING);
>         super.onDestroy();
>     }
>
> The dialog is only dismissed if I DONT change orientation, otherwise
> the "finished" toast will show, but the ProgressDialog will never
> actually disappear.
>
> On Nov 7, 2:41 pm, Mark Murphy <[email protected]> wrote:
>
>
>
> > Lee Jarvis wrote:
> > > This code (kinda) works, the only problem is dismissing the dialog if
> > > the activity is recreated. I've tried dismissing it if mTaskComplete
> > > is true but I guess by that time it's lost reference to the
> > > ProgressDialog.
>
> > You may need to dismiss the dialog in onDestroy() and reopen it in
> > onCreate(), if the flag is true.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Android App Developer Books:http://commonsware.com/books

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