I have been researching for 2 days and I haven\'t found a similar problem anywhere on the internet!
From the main activity, I\'m trying to open a new activity contai
Use this
browser_rn.loadDataWithBaseURL(url);
instead of
browser_rn.loadUrl("file:///android_asset/about.html");
meet same problem.
I tried the solutions in link. It failed all the time.
My situation is same to it. There is H5 video in webview,It does well first time and fail then. when It fails,I found some message from log
when I invoke method
mWebView.loadUrl(url)//webview's height is 0px now
//some code change webView's height here
My solutions is set webview height some dp or match_parent default. It works well!
try change in your code
public boolean shouldOverrideUrlLoading(WebView view, String url) {
return true;
}
Have a look at this tutorial.
Add following line in your activity which contains WebView activity android:hardwareAccelerated="false"
hope it will help
I updated last week from 2.3.4 to 4.0 on my HTC Sensation. The two apps i wrote had a local HTML-Contact site. On 2.3 it ran fine, now i get a "Webpage not available" site.
I found another post here on this site with the comment: "Via some discussion with a Google engineer it seems that they've made the decision that the file:// scheme is insecure."
See here for the workaround: Android 4.0.1 breaks WebView HTML 5 local storage?