I want to create android application which will open url in same application as like facebook application without any browser. I tried using WebView but it opens the url in browser.
You have to set up a webViewClient for your webView.
Sample code :
this.mWebView.setWebViewClient(new WebViewClient()
{
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url){
view.loadUrl(url);
return true;
}
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.