views:

69

answers:

2

Can anybody tell how to implement double click event in android without using gesturedetector?

A: 

Look at the source code for GestureDetector and copy the bits you need (specifically, look at the isConsideredDoubleTap method)

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=core/java/android/view/GestureDetector.java;hb=HEAD

oli
i am using chart application if i click the point for double click it will go to another activity.if i am used gesture detector if i click anywhere it will go to other activity
A: 

If you mean double tap you have to use GestureDetector.OnDoubleTapListener.

BrennaSoft