Issue
I followed this tutorial: http://examples.javacodegeeks.com/android/core/ui/webview/android-webview-example/
Every time I click on a link in the webview, it takes me out of the webview and into a separate browser window. How do I get all the links to open in the webview?
Solution
You need to implement setWebViewClient(....) like so.
webView.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
});
Answered By - M D
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.