[android-developers] Re: android.view.WindowLeaked when onPause() is called

2008-08-27 Thread Romain Guy
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() >

[android-developers] Re: android.view.WindowLeaked when onPause() is called

2008-08-27 Thread Justin (Google Employee)
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 An