Guillaume, I understand that i need to mock the the current location in the emulator, but my question is what api calls do i make to get the lat/ lon that i put in DDMS. I cannot find any documentations related to that in android's documentation.
On Sep 28, 4:53 am, Guillaume Perrot <[EMAIL PROTECTED]> wrote: > And you have to manually simulate your location using telnet or DDMS > controls in Eclipse (the latter only works if your OS is in english > locale). > For telnet: telnet localhost 5554 > > > geo fix 2 40 > > On 28 sep, 04:05, Mark Murphy <[EMAIL PROTECTED]> wrote: > > >zl25drexelwrote: > > > Hi, sorry i am sure this had been asked before, how do i find out my > > > current lat/lon using the location API? > > > You can't, per se. > > > You can call getLastKnownLocation() to return, well, the last known > > location, but that may be null (if there have been no locations recorded > > for the requested location provider) or stale (if the location provider > > has been out of service for a while). > > > Or, call requestLocationUpdates() and take action when you get new > > position fixes from the location provider. > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com > > _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

