Webview WebViewClient's method
public void onPageFinished(WebView view, String url) {
..processing code after page is loaded
}
can be used for implementing any required functionality after page has been fully loaded but it looks like this handler is triggered immediately after all the resources have finished loading and not wait until the rendering is completed. This I suspected when most of post loading activities for example scrolling to certain html elements failed. As a worked around I wrapped those function calls inside a Timer with a delay of 500 ms or more
new Timer().schedule(new TimerTask() {
something here...
}, 500);
but it does not look reliable in all scenarios for example if page is very large 500 ms would be inadequate etc.
Can this be done differently?