OnClickListener for pushpin
Here I have used google map and an overlay. I have used an image of pushpin to point to the GeoPoint. I want to set an OnClickListener event for the push pin. When user touches the pin, I want to toast a message. Below is the code. import java.util.List; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.Overlay; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Point;