java.util.concurrent.TimeoutException: android.view.ThreadedRenderer.finalize() timed out after 10 seconds

后端 未结 2 1597
青春惊慌失措
青春惊慌失措 2021-01-30 10:41

I am getting this strange crash reports on Lollipop. My app is basically a browser so it makes heavy use of the WebView but I don\'t know that the issue is happening there. Anyw

相关标签:
2条回答
  • 2021-01-30 11:23

    I think You are handling all your Http connections in the Main UI thread.Android doesnt allow you to do this from 2.3 and upwards. You will need to perform all your Http connections through asynchronous tasks.

    Google for tutorials on setting up your asynctask class as per your requirement.The link to the developer page will give you more info.

    http://developer.android.com/reference/android/os/AsyncTask.html

    0 讨论(0)
  • 2021-01-30 11:26

    Since KitKat, I have issues with WebViews (freeze, crash)

    I have resolved these issues deactivating hardware acceleration for webViews. It could work for you.

    if (Build.VERSION.SDK_INT >= 19) // KITKAT
    {
        webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
    }
    
    0 讨论(0)
提交回复
热议问题