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:
Bryce Curtis
2010-11-21 17:33:13 -06:00
parent 090ad56d0b
commit 5e9ca84b40
3 changed files with 202 additions and 0 deletions
+1
View File
@@ -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");