Fixing Brokeness

This commit is contained in:
Joe Bowser 2009-07-16 16:12:19 -07:00
parent a534e11c7e
commit dc9f9850f6
3 changed files with 8 additions and 9 deletions

View File

@ -86,4 +86,4 @@
<a href="#" class="btn" onclick="beep();">Beep</a>
<a href="#" class="btn" onclick="vibrate();">Vibrate</a>
</body>
</html>
</html>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">PhoneGap</string>
<string name="url">file:///android_asset/index.html</string>
<string name="url">file:///android_asset/www/index.html</string>
</resources>

View File

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