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!
2 Answers
Please elaborate your need as this questions is quite confusing. You can show the lat and long values on google map which I guess you are getting from web service or from current location. For using google map on your emulator you will need google map key. Let me know you what type of help you want exactly.
http://blogspot.fluidnewmedia.com/2009/04/displaying-google-maps-in-the-android-emulator/ above link ids good to start with.

- 414
- 3
- 8
You should clarify of what you are using (a Google API, or a image of a map), I am assuming that you are using Java for Android if you are using an image, you can possibly use the
onTouchEvent
to find your coordinates then return them on screen as longitude and latitude
as long as you know the longitude and latitude yourself on the map... Please be more descriptive in your questions.
public boolean onTouchEvent(MotionEvent event){
int action = event.getAction();
int x = event.getX()
int y = event.getY();
return yourBoolean;
}