you are not saying where they are riding the bike. Network location services work MUCH better in densely populated areas than out in the country.
On Tuesday, March 6, 2012 1:16:00 PM UTC-5, RedBullet wrote: > > I am writing an app that will will follow a route on the map, very similar > to a car navigation (except that it is following a specific route, not > simply trying to get to a location). > > What I am interested in is what would you recommend regarding which > provider to use, and what criteria to use when listening for location > changes. > > Overall what I need to do is the following: > > 1. Announce when I am off course by about 100 meters > 2. Announce when I am approaching a turn by about 100-200 meters > 3. go to the next waypoint when I arrive at a turn (about 50 meters) > 4. cyclists ride about 10-30 MPH > 5. Rides generally last 3-8 hours (so think battery power). > > Right now I am doing this: > locationManager = (LocationManager) > getSystemService(Context.LOCATION_SERVICE); > Criteria criteria = new Criteria(); > criteria.setAccuracy(Criteria.ACCURACY_COARSE); > criteria.setPowerRequirement(Criteria.POWER_LOW); > provider = locationManager.getBestProvider(criteria, false); > > locationManager.requestLocationUpdates( > provider, > MINIMUM_TIME_BETWEEN_UPDATES, > MINIMUM_DISTANCE_CHANGE_FOR_UPDATES, > this > ); > > Where min time is 5000 and min distance is 10 > > Any other recommendations? Like should I just always pick GPS for > provider? Or other strategies? > > Thanks in advance! > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en