Hi Justin, the interesting enhancement wasn't the journey, but it was the interpolation of route-points. One may now make a road of 2 points and the mock-provider can make a route of arbitrary many points out of these two. So if one has a straight route between 2 cities, the provider creates a "smooth" route between the cities.
Stefan Am Dienstag, den 09.09.2008, 11:21 -0700 schrieb Justin (Google Employee): > Thanks Stefan, for providing the additional route. I just included a > trivial one and the hope is that users will input what ever route data > source makes sense for them. > > In the future I might work on enhancing the program to include a set > of routes to choose from and the ability to just specify different > data sources like a URL, file path, or content provider. > > Cheers, > Justin > Android Team @ Google > > On Sep 3, 9:56 am, Stefan Handschuh <[EMAIL PROTECTED]> wrote: > > I somehow improved Justins code. > > > > Seehttp://pastebin.com/m1f06415f > > > > It has now a New-York based journey (longer than before) and the > > time-interval between each points can be set so that the update inveral > > (set to 500ms) can be arbitraryly small (see line 177) > > > > @Justin: if you like it, please include it in you zip-file > > > > > I just posted some code > > > athttp://groups.google.com/group/android-developers/web/mock_provider.zip > > > that implements a mock location provider. This runs entirely in the > > > emulator, so it should work across all platforms. It allows you to > > > specify a set of coordinates and will the just loop through them > > > forever. This could easily be adapted to read data from a file, URL, > > > etc. As Stefan points out > > > onhttp://groups.google.com/group/android-developers/browse_frm/thread/2... > > > , its important to set the time value on the Location you pass to the > > > location service. If a new Location has the same time value as the > > > previous one the LocationManager received, the location won't be > > > updated. > > > > > You should be able to compile this, install it on the emulator, run > > > it, and then see the location change in Maps application. > > > > > Hopefully this puts it all together and resolves issues that many have > > > been encountering. > > > > > Cheers, > > > Justin > > > Android Team @ Google > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

