I just posted some code at 
http://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 on 
http://groups.google.com/group/android-developers/browse_frm/thread/2b71c14f34dd8788
, 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to