I have an URL for a blog site and I load it from my Android app like this
webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);
webView.loadUrl(myURL);
webView.setWebViewClient(new CustomWebViewClient());
CustomWebViewClient class
private class CustomWebViewClient extends WebViewClient {
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
super.onPageStarted(view, url, favicon);
showProgressDialog(BrowserActivity.this);
}
@Override
public void onPageFinished(WebView view, String url) {
hideProgressDialog(BrowserActivity.this);
}
}
The site loads and it displays some images on 2 rows. If I open the blog from my phone browser and scroll the page to the end, more images are loaded automatically. So the problem is that if the blog is opened from my app it shows only 2 rows and it doesn't load the rest of the images. What can be the problem? How could I fix this?