How to use 'implements' function in Android Studio
<p>I'm just starting to learn Android development, and I'm currently following through thenewboston's Android tutorials. I don't know why i get this error:</p>

<pre><code>Error:(10, 8) error: MainActivity is not abstract and does not override abstract method onFling(MotionEvent,MotionEvent,float,float) in OnGestureListener
</code></pre>

<p>Here's my code:</p>

<pre><code>package com.example.gonzales.gestures;

import android.gesture.Gesture;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.os.Bundle;
import android.widget.TextView;
import android.view.MotionEvent;
import android.view.GestureDetector;
import android.support.v4.view.GestureDetectorCompat;

//the error is because of this
public class MainActivity extends AppCompatActivity implements GestureDetector.OnGestureListener,
GestureDetector.OnDoubleTapListener {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}
}
</code></pre>

<p>This is almost the exact code as in the tutorial. Any help would be very appreciated. Thanks!</p>