Detect the coordinates on the screen
<p>I want to detect the coordinates of a map are touched on the screen with a finger. The problem is when I touch the screen with a finger the coordinates are not displayed with a toast.
I am using Google Maps v2. My code:</p>

<pre><code>@Override
public boolean onTouchEvent(MotionEvent event) 
{
    if (event.getAction() == MotionEvent.ACTION_POINTER_DOWN) 
    {
        CrearLugar();
    }

    return super.onTouchEvent(event);
}

public void CrearLugar()
{
    final GoogleMap mMap=null;

    mMap.setOnMapClickListener(new OnMapClickListener() {
        public void onMapClick(LatLng point) {
            Projection proj=mMap.getProjection();
            Point coord = proj.toScreenLocation(point);

            Toast.makeText(
                MapaLugaresActivity.this,
                "Click\n" +
                "Lat: " + point.latitude + "\n" +
                "Lng: " + point.longitude + "\n" +
                "X: " + coord.x + " - Y: " + coord.y,
                Toast.LENGTH_SHORT).show();
        }
    });
}
</code></pre>

<p>Everything is correct except when I touch the screen with a finger. When I do it, I want to display the coordinates of the place touched, but I can't watch anything, only the map.</p>

<p>What's wrong?</p>

<p>Thanks.</p>
