Code example for GestureDetector.SimpleOnGestureListener

0
import com.google.android.maps.MapView; 
 
public class SuperCoolMegaGeilMapView extends MapView {
 
	private GestureDetector gDetector;
	private SimpleOnGestureListener sl = new SimpleOnGestureListener();
 
	public SuperCoolMegaGeilMapView(Context context, AttributeSet attrs) {
		super(context, attrs);
		createDetector(context);
 
	} 
 
	private void createDetector(Context context) {
		gDetector = new GestureDetector(sl);
	} 
 
	public SuperCoolMegaGeilMapView(Context context, AttributeSet attrs,
			int defStyle) {
		super(context, attrs, defStyle);
		createDetector(context);