Removed PhoneGap.java, renaming to device and audio

This commit is contained in:
Joe Bowser
2010-06-08 16:30:20 -07:00
parent bb501de22c
commit 945c0d95e6
5 changed files with 314 additions and 257 deletions
+5 -2
View File
@@ -59,7 +59,7 @@ public class DroidGap extends Activity {
protected WebView appView;
private LinearLayout root;
private PhoneGap gap;
private Device gap;
private GeoBroker geo;
private AccelBroker accel;
private CameraLauncher launcher;
@@ -70,6 +70,7 @@ public class DroidGap extends Activity {
private Storage cupcakeStorage;
private CryptoHandler crypto;
private BrowserKey mKey;
private AudioHandler audio;
private Uri imageUri;
@@ -142,7 +143,7 @@ public class DroidGap extends Activity {
private void bindBrowser(WebView appView)
{
gap = new PhoneGap(appView, this);
gap = new Device(appView, this);
geo = new GeoBroker(appView, this);
accel = new AccelBroker(appView, this);
launcher = new CameraLauncher(appView, this);
@@ -152,6 +153,7 @@ public class DroidGap extends Activity {
mCompass = new CompassListener(appView, this);
crypto = new CryptoHandler(appView);
mKey = new BrowserKey(appView, this);
audio = new AudioHandler(appView, this);
// This creates the new javascript interfaces for PhoneGap
appView.addJavascriptInterface(gap, "DroidGap");
@@ -164,6 +166,7 @@ public class DroidGap extends Activity {
appView.addJavascriptInterface(mCompass, "CompassHook");
appView.addJavascriptInterface(crypto, "GapCrypto");
appView.addJavascriptInterface(mKey, "BackButton");
appView.addJavascriptInterface(audio, "GapAudio");
if (android.os.Build.VERSION.RELEASE.startsWith("1."))