title: Unable to override methods of LocationListener class
body: <p>I want to get current location using GPS.</p>
  
  <p>Here is my scenario. My class definition is:</p>
  
  <pre><code>public class UseGps extends Activity implements LocationListener
  </code></pre>
  
  <p>If Í try to override the LocationListener methods like this</p>
  
  <p>1)</p>
  
  <pre><code>@Override 
  public void onLocationChanged(Location loc)
  </code></pre>
  
  <p>2)</p>
  
  <pre><code>@Override
  public void onProviderDisabled(String provider)
  </code></pre>
  
  <p>3)</p>
  
  <pre><code>@Override
  public void onProviderEnabled(String provider)
  </code></pre>
  
  <p>it is giving me compilation error saying </p>
  
  <p><code>The method onStatusChanged(String, int, Bundle) of type UseGps must override a superclass method remove override.</code></p>
  
  <p>Same for 2) and 3)</p>
  
  <p>What is wrong here?</p>