I can't get this to work in the emulator.

LocationManager lm = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000L,
500.0f, this);
Location loc = lm
.getLastKnownLocation(lm.getProviders(true).get(0));

loc always returns NULL.    I have tried to push the location with geo fix
and the emulators DDMS view.   I am using COARSE_LOCATION and seem to be
getting a new error that I haven't seen before:
10-28 15:10:12.470: ERROR/LocationMasfClient(59): getNetworkLocation():
accuracy is too high 24000

Any clues?   Is this just an issue with the emulator or am I missing some
upgraded code in 2.0?



-- 
Writing code is one of few things
that teaches me I don't know everything.

http://www.fuligin.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to