title: onListItemClick() error: it must override or implement a supertype method
body: <p>I am a beginner in both Android and Java. I searched for an answer to this error, but nothing in stackOverflow worked for my situation. I am following a book that says we need to use a onListItemClick() method that is from a class (CrimeListFragment) we created that extends ListFragment (using the method and the class are mandatory).</p>
  
  <p>However, I keep getting the error with:</p>
  
  <pre><code>@Override
      public void onListItemClick(ListView 1, View v, int position, long id)
      {
          Crime c = (Crime)(getListAdapter()).getItemViewType(position);
          Log.d(TAG, c.getTitle() + " was clicked");
      }
  </code></pre>
  
  <p>The error says </p>
  
  <blockquote>
    <p>"The method on onListItemClick of type CrimeListFragment must override
    or implement a supertype method."</p>
  </blockquote>
  
  <p>It also has a problem with the List View 1 argument. That shows an error too.</p>
  
  <p>This project is complicated with many classes, but here is the main code for this page:</p>
  
  <pre><code>package com.bignerdranch.android.criminalintent;
  
  import java.util.ArrayList;
  
  import android.os.Bundle;
  import android.support.v4.app.ListFragment;
  import android.widget.ArrayAdapter;
  import android.widget.ListView;
  
  
  public class CrimeListFragment extends ListFragment {
      private static final String TAG = "CrimeListFragment";
      private ArrayList&lt;Crime&gt; mCrimes;
  
  
  
      @Override
      public void onListItemClick(ListView 1, View v, int position, long id)
      {
          Crime c = (Crime)(getListAdapter()).getItemViewType(position);
          Log.d(TAG, c.getTitle() + " was clicked");
      }
  
      @Override
      public void onCreate(Bundle savedInstanceState){
          super.onCreate(savedInstanceState);
          getActivity().setTitle(R.string.crimes_title);
          mCrimes = CrimeLab.get(getActivity()).getCrimes();
  
          ArrayAdapter&lt;Crime&gt; adapter = new ArrayAdapter&lt;Crime&gt;(getActivity(),
                  android.R.layout.simple_list_item_1, mCrimes);
  
          setListAdapter(adapter);
      }
  
  }
  </code></pre>
  
  <p>HOW do I get rid of these 2 errors? Thank you.</p>