diff --git a/framework/build.xml b/framework/build.xml index afbc7e2f..45d842ae 100644 --- a/framework/build.xml +++ b/framework/build.xml @@ -28,7 +28,6 @@ Properties related to the SDK location or the project target should be updated using the 'android' tool with the 'update' action. - This file is an integral part of the build system for your application and should be checked into Version Control Systems. @@ -49,13 +48,13 @@ application and should be checked into Version Control Systems. --> - + - + - - + @@ -141,7 +139,8 @@ - + + diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index 4cf73af0..09adc9d5 100755 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -42,6 +42,7 @@ import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.view.WindowManager; +import android.webkit.ConsoleMessage; import android.webkit.GeolocationPermissions.Callback; import android.webkit.JsPromptResult; import android.webkit.JsResult; @@ -277,6 +278,9 @@ public class DroidGap extends PhonegapActivity { settings.setJavaScriptEnabled(true); settings.setJavaScriptCanOpenWindowsAutomatically(true); settings.setLayoutAlgorithm(LayoutAlgorithm.NORMAL); + + //Set the nav dump for HTC + settings.setNavDump(true); // Enable database settings.setDatabaseEnabled(true); @@ -1102,9 +1106,15 @@ public class DroidGap extends PhonegapActivity { @Override public void onConsoleMessage(String message, int lineNumber, String sourceID) { - // This is a kludgy hack!!!! LOG.d(TAG, "%s: Line %d : %s", sourceID, lineNumber, message); } + + @Override + public boolean onConsoleMessage(ConsoleMessage consoleMessage) + { + LOG.d(TAG, consoleMessage.message()); + return true; + } @Override /**