I have a simple activity to show the button webviewand the back button. Here is the code that I use to download the URL that I want in webview.
The web page that I load on the server online, it has several form elements plus several links that, when clicked, should load me inside webview.
Now the problem is very often associated with loading pages without images, I see form elements, although or just a blank white page. I am testing this on Wi-Fi, so the internet is working fine.
Why is this not downloading images and how can I make sure that it is? I even tried to make all the images on the html page absolute paths, but that didn't help.
Later Editing: I found out what caused this. Perhaps others will come across this. I had it in the manifest file android:hardwareAccelerated="true". After removing it, the contents within all web views load smoothly.
Second late editing: horrible, now I am loading the page, but the forms are not submitted, and after some going back and forth to the web view, the new images no longer load. Is this a memory problem? How can I start to start every time?
WebView wv = (WebView) findViewById(R.id.webview);
wv.getSettings().setBuiltInZoomControls(false);
wv.getSettings().setJavaScriptEnabled(true);
wv.setWebViewClient(new WebViewClient());
wv.loadUrl(filepath);
source
share