While most website pages perform well on Android 4.4 and newer versions with Chromium-based webview, I have encountered an issue wherein a particular page behaves differently between the newer versions and the earlier Android systems.
The webview functions as expected on older Android systems but not on KitKat. This disparity leads me to believe that there might be some hidden intricacies within the page that are causing this inconsistency. Despite dedicating weeks to resolving this matter, I remain stuck on this problem.
I kindly seek your assistance in deciphering this issue. Thank you in advance for your help.
Below are the provided codes:
WebView WV_test = (WebView) findViewById(R.id.WV_query);
WV_test.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
WV_test.getSettings().setDomStorageEnabled(true);
WV_test.getSettings().setJavaScriptEnabled(true);
WV_test.setWebViewClient(new WebViewClient() {
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
Log.v("attlog", "onPageStarted: url="+url);
super.onPageStarted(view, url, favicon);
}
@Override
public void onPageFinished(WebView view, String url) {
Log.v("attlog", "onPageFinished: url="+url);
super.onPageFinished(view, url);
}
@Override
public void onLoadResource(WebView view, String url) {
Log.v("attlog", "onLoadResource() url="+url);
super.onLoadResource(view, url);
}
});
String url="http://railway.hinet.net/ccancel_rt.jsp";
Log.v("attlog", "url="+url );
WV_test.loadUrl( url );
The outcome on the legacy webkit version (e.g., 4.1) aligns with expectations:
Displayed Output...
However, the results differ on the newer Chromium-based webkit versions like 4.4 onwards:
Displayed Output...
Your support is greatly appreciated.