diff --git a/framework/src/org/apache/cordova/CordovaWebViewClient.java b/framework/src/org/apache/cordova/CordovaWebViewClient.java index 319a944b..a5e57455 100755 --- a/framework/src/org/apache/cordova/CordovaWebViewClient.java +++ b/framework/src/org/apache/cordova/CordovaWebViewClient.java @@ -183,6 +183,8 @@ public class CordovaWebViewClient extends WebViewClient { @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { + Log.d("CordovaWebViewClient", "I got a page started for = " + url); + Log.d("CordovaWebViewClient", "can go back " + view.canGoBack()); // Clear history so history.back() doesn't do anything. // So we can reinit() native side CallbackServer & PluginManager. @@ -198,6 +200,7 @@ public class CordovaWebViewClient extends WebViewClient { */ @Override public void onPageFinished(WebView view, String url) { + Log.d("CordovaWebViewClient", "I got a page finished for = " + url); super.onPageFinished(view, url); /** diff --git a/framework/src/org/apache/cordova/DroidGap.java b/framework/src/org/apache/cordova/DroidGap.java index acfb0469..2bc6c38e 100755 --- a/framework/src/org/apache/cordova/DroidGap.java +++ b/framework/src/org/apache/cordova/DroidGap.java @@ -55,6 +55,7 @@ import android.media.AudioManager; import android.net.Uri; import android.net.http.SslError; import android.os.Bundle; +import android.util.Log; import android.view.Display; import android.view.KeyEvent; import android.view.Menu; @@ -671,6 +672,12 @@ public class DroidGap extends Activity implements CordovaInterface { * Clear web history in this web view. */ public void clearHistory() { + Log.d("DroidGap", "*****************"); + Log.d("DroidGap", "*****************"); + Log.d("DroidGap", "*****************"); + Log.d("DroidGap", "In DroidGap clearHistory"); + Log.d("DroidGap", "The size of urls is = " + this.urls.size()); + this.urls.clear(); this.appView.clearHistory();