You need to shut down the dialog in your onPause method. Use cancel()
or dismiss() depending on your use case. View normally shut themselves
down automagically, but I think dialogs are special because they're
not part of the view tree of the content view of the hosting activity.

Cheers,
Justin
Android Team @ Google

On Aug 27, 11:12 am, snowcrash <[EMAIL PROTECTED]> wrote:
> hi,
>
> i have an application running a background thread to do xml-parsing
> while the ui-thread displays a progressdialog. the activity has a
> handler to queue runnables from the other thread, mainly to display
> messages. when the xml-thread is finished and the activity is left
> using the back button on the emulator, i'm getting the following
> error:
>
> android.view.WindowLeaked: Activity <Name> has leaked window
> [EMAIL PROTECTED] that
> was originally added here
>
> what am i doing wrong? i also can't find information on
> 'android.view.WindowLeaked', it seems to be undocumented.
>
> thanks
> snowcrash
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to