forked from github/cordova-android
Fixing Accelerometer
This commit is contained in:
parent
dc9f9850f6
commit
0344665c79
@ -94,11 +94,11 @@ public class DroidGap extends Activity {
|
|||||||
// The PhoneGap class handles the Notification and Android Specific crap
|
// The PhoneGap class handles the Notification and Android Specific crap
|
||||||
this.gap = new PhoneGap(this, appView);
|
this.gap = new PhoneGap(this, appView);
|
||||||
this.geo = new GeoBroker(appView, this);
|
this.geo = new GeoBroker(appView, this);
|
||||||
//this.accel = new AccelListener(this, appView);
|
this.accel = new AccelListener(this, appView);
|
||||||
// This creates the new javascript interfaces for PhoneGap
|
// This creates the new javascript interfaces for PhoneGap
|
||||||
appView.addJavascriptInterface(gap, "Device");
|
appView.addJavascriptInterface(gap, "Device");
|
||||||
appView.addJavascriptInterface(geo, "Geo");
|
appView.addJavascriptInterface(geo, "Geo");
|
||||||
//appView.addJavascriptInterface(accel, "Accel");
|
appView.addJavascriptInterface(accel, "Accel");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user