Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing the delay argument, and setting accuracy as a desired criteria

  • Loading branch information...
commit b0303921acb0a243bbdac1b02a1ebc2d26a02380 1 parent 5069799
Danny Yoo authored
View
2  phone/location.rkt
@@ -30,7 +30,7 @@
(case-lambda [(world-updater delay)
(cond
[(running-in-phone-context?)
- (phonegap-on-location-change world-updater)]
+ (phonegap-on-location-change world-updater delay)]
[else
(mock-on-location-change world-updater)])]
[(world-updater)
View
1  support/phonegap-fork/android-1.5/src/com/phonegap/demo/LocationProviderListener.java
@@ -57,6 +57,7 @@ public LocationProviderListener(Context ctx, int interval, GeoListener m)
private void requestUpdates() {
Criteria c = new Criteria();
c.setCostAllowed(false);
+ c.setAccuracy(Criteria.ACCURACY_FINE);
String provider = mLocMan.getBestProvider(c, true);
Log.d(LOG_TAG, "requestLocationUpdates with " + this.interval + " milliseconds");
mLocMan.requestLocationUpdates(provider, this.interval, 0, this);
Please sign in to comment.
Something went wrong with that request. Please try again.