mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
Fixes to bring PhoneGap Android closer to spec
This commit is contained in:
@@ -94,9 +94,10 @@ public class DroidGap extends Activity {
|
||||
// The PhoneGap class handles the Notification and Android Specific crap
|
||||
this.gap = new PhoneGap(this, appView);
|
||||
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
|
||||
appView.addJavascriptInterface(gap, "Device");
|
||||
// Ewww - It's called DroidGap again. :(
|
||||
appView.addJavascriptInterface(gap, "DroidGap");
|
||||
appView.addJavascriptInterface(geo, "Geo");
|
||||
appView.addJavascriptInterface(accel, "Accel");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user