I'm a beginner so maybe this isn't helpful but
testLocation.setLatitude(45.000);
testLocation.setLongitude(-127.000);
testLocation.setTime(System.currentTimeMillis());
then increment each setting a little bit or random amount.
on the next
mLocation =
mLocationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
you will have moved and the time will be different too.
Do it in some kind of loop or even in a timer handler and set the
timer every second or ten seconds etc.
On Aug 27, 1:18 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I've seen the same effect, but using a test provider does not help
> either: I've registered a LocationListener and it gets called only
> once, even if i change the position every x seconds. But registering a
> listener seems to be the way to detect location changes
> asynchronously.
>
> Using the "geo" command on the emulator via telnet seems to break
> things, too - using it takes me to the northern atlantic, no matter
> what i set the coordinates to. So i guess GPS support in the emulator
> is seriously broken... any ideas how to test a GPS-dependent App that
> needs location change updates?
--~--~---------~--~----~------------~-------~--~----~
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]
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
-~----------~----~----~----~------~----~------~--~---