I'm trying to write an app that will simulate a driving route with Google Maps Navigation. I am using:
LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); locationManager.addTestProvider(LocationManager.GPS_PROVIDER, false, false,false, false, true, true, true, 0, 5); locationManager.setTestProviderEnabled(LocationManager.GPS_PROVIDER, true); locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this); Location location = new Location(LocationManager.GPS_PROVIDER); location.setLatitude(latitude); location.setLongitude(longitude); location.setAltitude(altitude); locationManager.setTestProviderLocation(LocationManager.GPS_PROVIDER,location); I feed in the latitude, longitude, and altitude at regular intervals. The mock locations update properly in Maps and Navigation. However, I see a "Searching for GPS Signal" message at the bottom of Navigation and the turn-by-turn driving directions / route recalculation features are not active. I was wondering if anyone has any advice for how to get the Navigation application to use my mock coordinates instead of the GPS signal. I've done a pretty extensive online search over the last few days but have not found any similar problems. Thanks for your help. -- 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