PhoneGap Media and File

This commit is contained in:
Joe Bowser
2009-09-11 14:30:24 -07:00
parent 4b3e3140f4
commit 470ad5efc4
3 changed files with 112 additions and 9 deletions
+4
View File
@@ -46,6 +46,7 @@ public class DroidGap extends Activity {
private GeoBroker geo;
private AccelListener accel;
private CameraLauncher launcher;
private FileUtils fs;
/** Called when the activity is first created. */
@Override
@@ -98,11 +99,14 @@ public class DroidGap extends Activity {
geo = new GeoBroker(appView, this);
accel = new AccelListener(this, appView);
launcher = new CameraLauncher(appView, this);
fs = new FileUtils();
// This creates the new javascript interfaces for PhoneGap
appView.addJavascriptInterface(gap, "DroidGap");
appView.addJavascriptInterface(geo, "Geo");
appView.addJavascriptInterface(accel, "Accel");
appView.addJavascriptInterface(launcher, "GapCam");
appView.addJavascriptInterface(fs, "FileUtil");
}
/**