mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
Expose certain methods from DroidGap to JavaScript so that a PhoneGap web app can better control program configuration and flow.
This commit is contained in:
@@ -255,6 +255,7 @@ public class DroidGap extends PhonegapActivity {
|
||||
appView.addJavascriptInterface(this.mKey, "BackButton");
|
||||
appView.addJavascriptInterface(this.callbackServer, "CallbackServer");
|
||||
|
||||
this.addService("App", "com.phonegap.App");
|
||||
this.addService("Geolocation", "com.phonegap.GeoBroker");
|
||||
this.addService("Device", "com.phonegap.Device");
|
||||
this.addService("Accelerometer", "com.phonegap.AccelListener");
|
||||
|
||||
Reference in New Issue
Block a user