Webview Content Not Loading All Devices
Solution 1:
There are some configurations that make no difference and perhaps you could remove them:
mWebView.setInitialScale(0); // This is 0 by default scale
settings.setAppCacheEnabled(false); // This is false by default
settings.setLoadsImagesAutomatically(true); //This is twice
settings.setLoadsImagesAutomatically(true); //This is twice
settings.setPluginState(WebSettings.PluginState.ON); // This is deprecated since API level 18
If those devices giving you trouble are running on API level 18+ the above line might be the issue.
Then it doesn't seem you are loading the content from a URL despite you are suing this method:
mWebView.loadDataWithBaseURL("", ftext,"text/html",utf-8,""); //The firstparameterisemptyand could lead to'about:blank'
Use loadDataWithBaseURL if you are loading from a remote server and have a url, otherwise if you are loading from local then use other methods like:
webview.loadData(summary, "text/html", null);
EDIT: Then based on your latest comments, I would save the Urls that the user navigates through in a collection and even save the scrollY in those specific devices. Then listen to the Back button and navigate through the save urls in those devices, reloading the page on each page if needed.
Post a Comment for "Webview Content Not Loading All Devices"