diff --git a/src/com/phonegap/demo/DroidGap.java b/src/com/phonegap/demo/DroidGap.java index 8abdc669..d4984d34 100644 --- a/src/com/phonegap/demo/DroidGap.java +++ b/src/com/phonegap/demo/DroidGap.java @@ -61,10 +61,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); @@ -131,6 +132,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;