Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
s sargazim
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of a "map" is this the user clicks on? Some component in your app? Some standalone app like Google Maps? Something else?
 
s sargazim
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!