how to get longitude and latitude w/o query

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

how to get longitude and latitude w/o query

Postby nkho » Wed Apr 30, 2008 2:51 am

Hi Plus Minus,

Would like to check wif you, if ther is a way to auto detect longitude and latitude in the place where we are standing now without the need to submit street address,email address, country code phone number as query in
order to get the lat and long?

Regards.
nkho
Freshman
Freshman
 
Posts: 6
Joined: Tue Apr 29, 2008 4:51 am

Top

Postby plusminus » Thu May 01, 2008 2:32 pm

Hello nkho,

maybe I didn't understand you properly but:

GPS-Positon == Lat/Lng

You'll easily find information on how to grab the current GPS-Location of the device.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby borya » Tue Jul 08, 2008 8:56 pm

the LocationProvider you are using has a method that returns the current position. If you want it to happen automatically, use the LocationManager function requestUpdates() and then implement an IntentReceiver to handle the updates.
borya
Developer
Developer
 
Posts: 27
Joined: Wed Jul 02, 2008 7:50 pm
Location: California, USA

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 4 guests