Hi, you have to implement the method onTouchEvent.

I have my class that extends from ItemizedOverlay and within
onTouchEvent method implementation.

            @Override
            public boolean onTouchEvent(MotionEvent event, MapView mapView)
            {
                //---when user lifts his finger---
                if (event.getAction() == 1) {
                    GeoPoint p = mapView.getProjection().fromPixels(
                        (int) event.getX(),
                        (int) event.getY());

                    Geocoder geoCoder = new Geocoder(context,
Locale.getDefault());

                    // ...

                    return true;
                }
                else
                    return false;
            }

On 14 Març, 21:17, Dominik Schury <[email protected]>
wrote:
> Hi Developers,
> in my app that I want to develope I need to get location coordinates
> by clicking a point in google maps.
> Ist this possible? If yes, what code do I need for this.
>
> Thank you in advance!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to