Permalink
Browse files

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

  • Loading branch information...
1 parent 5069799 commit b0303921acb0a243bbdac1b02a1ebc2d26a02380 Danny Yoo committed Nov 19, 2010
View
@@ -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)
@@ -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);

0 comments on commit b030392

Please sign in to comment.