From dc9f9850f67d0fcbfe4bdafbb16cae9a10b94e46 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Thu, 16 Jul 2009 16:12:19 -0700 Subject: [PATCH] Fixing Brokeness --- assets/www/index.html | 2 +- res/values/strings.xml | 2 +- src/com/phonegap/demo/DroidGap.java | 13 ++++++------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/assets/www/index.html b/assets/www/index.html index 460b3a24..bb8499dc 100644 --- a/assets/www/index.html +++ b/assets/www/index.html @@ -86,4 +86,4 @@ Beep Vibrate - \ No newline at end of file + diff --git a/res/values/strings.xml b/res/values/strings.xml index 5fd9e9e8..77ae125f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1,5 +1,5 @@ PhoneGap - file:///android_asset/index.html + file:///android_asset/www/index.html diff --git a/src/com/phonegap/demo/DroidGap.java b/src/com/phonegap/demo/DroidGap.java index ac9c83ed..f8a51249 100644 --- a/src/com/phonegap/demo/DroidGap.java +++ b/src/com/phonegap/demo/DroidGap.java @@ -43,8 +43,7 @@ public class DroidGap extends Activity { private String uri; private PhoneGap gap; private GeoBroker geo; - private AccelListener accel; - + private AccelListener accel; /** Called when the activity is first created. */ @Override @@ -93,13 +92,13 @@ public class DroidGap extends Activity { private void bindBrowser(WebView appView) { // The PhoneGap class handles the Notification and Android Specific crap - gap = new PhoneGap(this, appView); - geo = new GeoBroker(appView, this); - accel = new AccelListener(this, appView); + this.gap = new PhoneGap(this, appView); + this.geo = new GeoBroker(appView, this); + //this.accel = new AccelListener(this, appView); // This creates the new javascript interfaces for PhoneGap - appView.addJavascriptInterface(gap, "Device"); + appView.addJavascriptInterface(gap, "Device"); appView.addJavascriptInterface(geo, "Geo"); - appView.addJavascriptInterface(accel, "Accel"); + //appView.addJavascriptInterface(accel, "Accel"); } /**