From d7461d49da5bc0b621358f66b02e529ab6cd16ec Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Mon, 2 Nov 2009 10:06:23 -0800 Subject: [PATCH] Very minor changes to the core classes --- src/com/phonegap/demo/DroidGap.java | 9 ++++++--- src/com/phonegap/demo/PhoneGap.java | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/com/phonegap/demo/DroidGap.java b/src/com/phonegap/demo/DroidGap.java index 09ab728b..212d287c 100644 --- a/src/com/phonegap/demo/DroidGap.java +++ b/src/com/phonegap/demo/DroidGap.java @@ -62,10 +62,11 @@ public class DroidGap extends Activity { /* This changes the setWebChromeClient to log alerts to LogCat! Important for Javascript Debugging */ - appView.setWebChromeClient(new GapClient(this)); + appView.setWebChromeClient(new GapClient(this)); appView.getSettings().setJavaScriptEnabled(true); - appView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); - + appView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); + + /* Bind the appView object to the gap class methods */ bindBrowser(appView); @@ -134,6 +135,8 @@ public class DroidGap extends Activity { result.confirm(); return true; } + + } diff --git a/src/com/phonegap/demo/PhoneGap.java b/src/com/phonegap/demo/PhoneGap.java index 1a9f53f5..46bedf99 100644 --- a/src/com/phonegap/demo/PhoneGap.java +++ b/src/com/phonegap/demo/PhoneGap.java @@ -26,6 +26,7 @@ import java.util.TimeZone; import android.content.Context; import android.content.IntentFilter; +import android.hardware.SensorManager; import android.net.Uri; import android.os.Vibrator; import android.telephony.TelephonyManager; @@ -83,8 +84,7 @@ public class PhoneGap{ } public String getUuid() - { - + { TelephonyManager operator = (TelephonyManager) mCtx.getSystemService(Context.TELEPHONY_SERVICE); String uuid = operator.getDeviceId(); return uuid;