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