android - How to open a URL natively in an app without using webview -


is there way open url in application without using webview? right i'm opening url in webview using 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 show progress dialog      //when opening url or click on link       wv.setwebviewclient(new webviewclient() {                //progressdialog progressdialog;           //if not use method url links 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);  } 

if want open url inside application you'll have use webview.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -