Redirect Issue

This commit is contained in:
macdonst 2012-02-06 20:21:12 -05:00
parent c9d4276207
commit 900ff9ed2c
2 changed files with 10 additions and 0 deletions

View File

@ -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);
/**

View File

@ -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();