Hi I am developing android application in which I am trying to load web view.
webView.loadDataWithBaseURL(targetUrl, object.toString(), "text/html", "utf-8", null);
inside my webview I have another link inside page. Once user click on the link it renders next page. Now problem is that from here if user click device back button it renders blank page. Not rendering any web page.
if (webView != null && webView.canGoBack()) {
webView.goBack();
} else {
Intent i = new Intent(this, another.class);
startActivity(i);
finishActivity();
}
How to handle this thing. Need some help. Thank you.