title: Android Development - GestureDetector.OnGestureListener or GestureDetector.SimpleOnGestureListener
body: <p>I'm working on simple code to detect all the gesture like fling, scroll, etc and was going to implement the interface <code>GestureDetector.OnGestureListener</code> for overriding its methods but I got to know that same could be done with <code>GestureDetector.SimpleOnGestureListener</code>. As far as I know the <code>SimpleOnGestureListener</code> is a class which have implemented <code>OnGestureListener</code>, <code>OnDoubleTapListener</code> and <code>OnContextClickListener</code> interfaces and if I'm wrong correct me.</p>
  
  <p>On Android Developer website page it is written - </p>
  
  <blockquote>
    <p>If you only want to process a few gestures, you can extend
    <code>GestureDetector.SimpleOnGestureListener</code> instead of implementing the
    <code>GestureDetector.OnGestureListener</code> interface. </p>
    
    <p><code>GestureDetector.SimpleOnGestureListener</code> provides an implementation
    for all of the <code>on&lt;TouchEvent&gt;</code> methods by returning false for all of
    them. Thus you can override only the methods you care about. For
    example, the snippet below creates a class that extends
    <code>GestureDetector.SimpleOnGestureListener</code> and overrides <code>onFling()</code>
    and <code>onDown()</code>.</p>
  </blockquote>
  
  <p>I got few questions here,</p>
  
  <p>1) Why to use <code>GestureDetector.SimpleOnGestureListener</code> if we can implement <code>GestureDetector.OnGestureListener</code> and other interfaces for using those methods too?</p>
  
  <p>2) Is <code>GestureDetector.SimpleOnGestureListener</code> same with no difference? It is made to simplify coding?</p>