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