aspose file tools*
The moose likes Android and the fly likes How to get latitude and longitude of a location which user clicked on it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to get latitude and longitude of a location which user clicked on it" Watch "How to get latitude and longitude of a location which user clicked on it" New topic
Author

How to get latitude and longitude of a location which user clicked on it

s sargazim
Greenhorn

Joined: Feb 19, 2013
Posts: 2
I'm going to get latitude and longitude of a location on map which user has clicked on and do some calculation on them.
BTW I shall say that I'm working with emulator and I don't have access to mobile phone and I have to run it in emulator.
Please help me what to do!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42612
    
  65
What kind of a "map" is this the user clicks on? Some component in your app? Some standalone app like Google Maps? Something else?


Ping & DNS - my free Android networking tools app
s sargazim
Greenhorn

Joined: Feb 19, 2013
Posts: 2
Ulf Dittmer wrote:What kind of a "map" is this the user clicks on? Some component in your app? Some standalone app like Google Maps? Something else?



It is Google Map. I'm going to use GPS and get latitude and longitude of a location on the map which user has clicked on. In android with java project how can I do that?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get latitude and longitude of a location which user clicked on it