I’m making an android app, which uses Google maps. One functionality is that the user may touch on a point of the map and retrieve the coordinates. I found a great tutorial here http://mobiforge.com/developing/story/using-google-maps-android?page=1 which shows how to implement this with a MotionEvent (you can find the code on the tutorial under “Getting the Location that was touched”).
My problem is that touch events seem not to be supported by the emulator and I do not have an android device to test it anytime. So I would like to have a method, that allows me to click the screen with the mouse and get the coordinates of the pixel that was clicked (so to transform them to geocoordinates).
From my research so far I couldn’t find anything that fits and I do not no if something exists. Can anyone help?
This will help u out:
oncreate code:
inner class for overlay that will respond to touch (click on emulator)