ANDROID: website doesn't load properly and some links don't work in webview

When I view my web page using Google Chrome in my Android mobile phone, the web page loads completely and everything works fine, however, when I load the same web page in Webview, the website does not load properly, especially the jquery content. Also none of my links work in webview. some links are simple href links and some others use javascript.

This is my code for loading the webpage:

webView.postUrl("http://www.url.com/users/login", EncodingUtils.getBytes(postData, "BASE64"));
webView.getSettings().setJavaScriptEnabled(true);

      

What's wrong with webviewing?

I need to send some data to a webpage, so I couldn't use an external web browser (they don't support post action)

By the way, I get this in my logcat when I touch the link:

E/webcoreglue๏น• Should not happen: no rect-based-test nodes found

      

Thank.

+3


source to share


1 answer


You need to restart your browser: swipe home and swipe your browser to close it completely. Haven't found a way to fix this permanently though.



0


source







All Articles