Error: WebView.destroy() called while still attached

Viewed 37990

I am getting this error when the device changes orientation:

Error: WebView.destroy() called while still attached

With this code:

protected void onDestroy()
{
    if (adView != null)
    {
        adView.destroy();
    }
}

What is the reason for this? How do I avoid this error?

5 Answers
Related