Is there a way to open a URL in an application without using webview? Right now I'm opening a URL in webview using the code below:
startWebView("https://maps.google.com/maps?saddr=" +mGPS.getLatitude() + "," +mGPS.getLongitude() + "&daddr= 28.878444,77.133497&spn=1&t=m");
private void startWebView(String url) {
//Create new webview Client to show progress dialog
//When opening a url or click on link
wv.setWebViewClient(new WebViewClient() {
//ProgressDialog progressDialog;
//If you will not use this method url links are opeen in new brower not in webview
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
//Show loader on url load
public void onLoadResource (WebView view, String url) {
}
public void onPageFinished(WebView view, String url) {
}
});
wv.getSettings().setJavaScriptEnabled(true);
wv.loadUrl(url);
}