You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Reto,
Thanks for your example project !
It looks like the methode Criteria.setAccuracy does accept only:
Criteria.NO_REQUIREMENT = 0
Criteria.ACCURACY_FINE = 1
Criteria.ACCURACY_COARSE = 2
But in the 'GingerbreadLastLocationFinder' class, you use:
criteria.setAccuracy(Criteria.ACCURACY_LOW);
Criteria.ACCURACY_LOW = 1, the same than Criteria.ACCURACY_FINE !!!
It should be
criteria.setAccuracy(Criteria.ACCURACY_COARSE)
Even worst, setting criteria.setAccuracy(Criteria.ACCURACY_HIGH); throw an
exception since Criteria.ACCURACY_HIGH (3) > Criteria.ACCURACY_COARSE (2)...
Maybe the Criteria constants should be set as enum or renamed, or something
else to not be misused...
Thanks,
Seb.
Original issue reported on code.google.com by [email protected] on 28 Jun 2011 at 8:17
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 28 Jun 2011 at 8:17The text was updated successfully, but these errors were encountered: