mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Fixing Brokeness
This commit is contained in:
parent
a534e11c7e
commit
dc9f9850f6
@ -86,4 +86,4 @@
|
||||
<a href="#" class="btn" onclick="beep();">Beep</a>
|
||||
<a href="#" class="btn" onclick="vibrate();">Vibrate</a>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">PhoneGap</string>
|
||||
<string name="url">file:///android_asset/index.html</string>
|
||||
<string name="url">file:///android_asset/www/index.html</string>
|
||||
</resources>
|
||||
|
@ -43,8 +43,7 @@ public class DroidGap extends Activity {
|
||||
private String uri;
|
||||
private PhoneGap gap;
|
||||
private GeoBroker geo;
|
||||
private AccelListener accel;
|
||||
|
||||
private AccelListener accel;
|
||||
|
||||
/** Called when the activity is first created. */
|
||||
@Override
|
||||
@ -93,13 +92,13 @@ public class DroidGap extends Activity {
|
||||
private void bindBrowser(WebView appView)
|
||||
{
|
||||
// The PhoneGap class handles the Notification and Android Specific crap
|
||||
gap = new PhoneGap(this, appView);
|
||||
geo = new GeoBroker(appView, this);
|
||||
accel = new AccelListener(this, appView);
|
||||
this.gap = new PhoneGap(this, appView);
|
||||
this.geo = new GeoBroker(appView, this);
|
||||
//this.accel = new AccelListener(this, appView);
|
||||
// This creates the new javascript interfaces for PhoneGap
|
||||
appView.addJavascriptInterface(gap, "Device");
|
||||
appView.addJavascriptInterface(gap, "Device");
|
||||
appView.addJavascriptInterface(geo, "Geo");
|
||||
appView.addJavascriptInterface(accel, "Accel");
|
||||
//appView.addJavascriptInterface(accel, "Accel");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user