Hi,
the last time i used navit on my android mobile phone i was wondering,
why the GPS positioning in a tunnel does not switch to GPRS/UMTS
positioning.
Looking into source code I found in NavitVehicle.java, once the GPRS
positioning (preciseProvider) is working, GPRS/UMTS positioning
(fastProvider) is turned off. A simple workaround might be turning on
the fastProvider again, if GPRS is disabled. This should be simple to
implement in the method shown at the end of this mail.
I think this feature should be implemented.
Yours,
Raimar
public void onProviderDisabled(String provider) {
if (fastProvider == null) {
// Selection criteria for the fast provider
Criteria lowCriteria = new Criteria();
lowCriteria.setAccuracy(Criteria.ACCURACY_COARSE);
lowCriteria.setAltitudeRequired(false);
lowCriteria.setBearingRequired(false);
lowCriteria.setCostAllowed(true);
lowCriteria.setPowerRequirement(Criteria.POWER_HIGH);
String tmpFastProvider =
locationManager.getBestProvider(lowCriteria, false);
if (tmpFastProvider!=null &&
preciseProvider.compareTo(tmpFastProvider) != 0) {
fastProvider = tmpFastProvider;
locationManager.requestLocationUpdates(fastProvider, 0, 0,
fastLocationListener);
}
}
}
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Navit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/navit-users