On Android 4.4.2, WebView loads slowly

I have a list, and when I click on one element of the list, one HTML page is called like this:

webView.loadDataWithBaseURL("file:///android_asset/", content, "text/html", "utf-8", "about:blank");

There is HTML5 video inside this webview (I use this library https://github.com/cprcrack/VideoEnabledWebView ). When I enter full-screen mode with video, then return to the list and click on another element to load the HTML page, this page takes too much time to load (for example, minutes). This only happens on some 4.4.2 devices; it loads quickly on the emulator.

My hardware acceleration is on.

I found out that if I rotate the screen, the second page loads quickly. But I tried reloading the page setup to clear the view, but that didn't work.

Does anyone know why this is happening?

I also get this error:

[ERROR: in_process_view_renderer.cc (193)] Failed to request GL process. Probably a dead end: 0

+4
source share
1 answer

If you are working on a web view, I would suggest looking at crosswalk and chromium . Its the best way to bring hardware acceleration to a project.

0
source

All Articles