[android-developers] Re: Mock Location Provider [SOLVED+IMPROVED]
It seems like the file was renamed, but you can still get it from the files section of this group, http://groups.google.com/group/android-developers/files Cheers, Justin Android Team @ Google On Sep 10, 7:18 am, ken <[EMAIL PROTECTED]> wrote: > Hi Justin, > > I just tried to download > > http://groups.google.com/group/android-developers/web/mock_provider.zip > > but I got a 404. Is it available somewhere else? > > Thanks, > Ken > > On Sep 9, 2:21 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote: > > > 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 contentprovider. > > > 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 amocklocationprovider. 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 android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: Mock Location Provider [SOLVED+IMPROVED]
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 android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: Mock Location Provider [SOLVED+IMPROVED]
Hi [re-post -- previous didn't appear] I tried downloading http://groups.google.com/group/android-developers/web/mock_provider.zip but got a 404. Has it moved somewhere else? Thanks, Ken On Sep 9, 2:21 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote: > 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 android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: Mock Location Provider [SOLVED+IMPROVED]
Hi Justin, I just tried to download http://groups.google.com/group/android-developers/web/mock_provider.zip but I got a 404. Is it available somewhere else? Thanks, Ken On Sep 9, 2:21 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote: > 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 android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: Mock Location Provider [SOLVED+IMPROVED]
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 android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: Mock Location Provider [SOLVED+IMPROVED]
Small correction: http://pastebin.com/m684e7561 On Sep 3, 6:56 pm, 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 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 -~--~~~~--~~--~--~---
[android-developers] Re: Mock Location Provider [SOLVED+IMPROVED]
I somehow improved Justins code. See http://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 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 -~--~~~~--~~--~--~---