2011-10-18 4 views

risposta

16
String historyUrl=""; 
myWebView = (WebView) findViewById(R.id.webViewContent); 
WebBackForwardList mWebBackForwardList = myWebView.copyBackForwardList(); 
if (mWebBackForwardList.getCurrentIndex() > 0) 
historyUrl = mWebBackForwardList.getItemAtIndex(mWebBackForwardList.getCurrentIndex()-1).getUrl(); 

// Previous url is in historyUrl 
+0

eldy, inserisci un punto e virgola alla fine della prima riga –

Problemi correlati