[android-developers] Destroy WebView without leaking window

2012-06-22 Thread Pent
If I have a WebView showing a javascript alert dialog, I can't find a
way to leave the current activity (the one with the WebView) without
getting the dreaded

activity blah has leaked window
com.android.internal.policy.impl.PhoneWindow$DecorView@41463258 that
was originally added here

because the dialog is still showing.

Anyone any tips ? I tried everything I could think of to get rid of
the dialog first.

TIA,

Pent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re:: [android-developers] Destroy WebView without leaking window

2012-06-22 Thread Kostya Vasilyev
Have you tried subclassing WebView and calling super.destroy() from
onDetachedFromWindow()?
 22.06.2012 14:07 пользователь Pent supp...@apps.dinglisch.net написал:

 If I have a WebView showing a javascript alert dialog, I can't find a
 way to leave the current activity (the one with the WebView) without
 getting the dreaded

 activity blah has leaked window
 com.android.internal.policy.impl.PhoneWindow$DecorView@41463258 that
 was originally added here

 because the dialog is still showing.

 Anyone any tips ? I tried everything I could think of to get rid of
 the dialog first.

 TIA,

 Pent

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en