SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

E/webview ( 1159): Error: WebView.destroy() called while still attached! #4851

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 4851

Android now whinges when you destroy an activity that has view that you havent disconnected
from it

    WebView webview = (WebView) findViewById(R.id.webview);
    if (webview != null)
    {
        webview.removeAllViews();
        webview.destroy();
    }
    WebView rssWebView = (WebView) findViewById(R.id.rssWebView);
    if (rssWebView != null)
    {
        rssWebView.removeAllViews();
        rssWebView.destroy();
    }

is needed in onDestroy to make it stop complaining

Reported by adamgoucher on 2012-11-30 13:35:43

lukeis commented 8 years ago
Selenium project no longer supports the AndroidDriver.

Please use Selendroid instead:
http://selendroid.io/webview.html

And log any issues against that project:
https://github.com/selendroid/selendroid/issues

Reported by luke.semerau on 2013-12-26 21:57:35

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:16:25