java - How to get webview url in android phonegap application? -


i'm developing phonegap application in android. in cases application connects external web pages through internet. since user may click on links in web pages , go sites not allowed, need keep track of changes of cordova webview url. so, there way url connected phonegap?

code example:

public class myphonegapactivity extends droidgap  {     @override     public void oncreate(bundle savedinstancestate)      {         super.oncreate(savedinstancestate);         super.init();         super.clearcache();         super.clearhistory();         super.appview.getsettings().setappcacheenabled(false);         super.loadurl("http://www.google.com");              string webviewurl = ??                //i need webviewurl = "http://www.google.com"       }  } 

i found it!

string webviewurl = appview.geturl() 

Comments