Or better yet, use managed dialogs. Look at the javadoc for the
Activity class for more information. You can also look at the API
demos.

On Wed, Aug 27, 2008 at 3:49 PM, Justin (Google Employee)
<[EMAIL PROTECTED]> wrote:
>
> 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
> >
>



-- 
Romain Guy
www.curious-creature.org

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