Merge branch 'master' of git@github.com:phonegap/phonegap-android

This commit is contained in:
Fil Maj
2010-02-19 10:15:45 -08:00
4 changed files with 224 additions and 68 deletions
+4 -2
View File
@@ -66,8 +66,10 @@ public class GeoListener {
// This stops the listener
void stop()
{
mGps.stop();
mNetwork.stop();
if(mGps != null)
mGps.stop();
if(mNetwork != null)
mNetwork.stop();
}
public Location getCurrentLocation() {
+1 -16
View File
@@ -11,22 +11,7 @@ public class StandAlone extends DroidGap {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
/* Load a URI from the strings.xml file */
Class<R.string> c = R.string.class;
Field f;
String uri;
int i = 0;
try {
f = c.getField("url");
i = f.getInt(f);
uri = this.getResources().getString(i);
} catch (Exception e)
{
uri = "http://www.phonegap.com";
}
super.loadUrl(uri);
super.loadUrl("file:///android_asset/www/index.html");
}
}