I want to get the current location using GPS.
Here is my script. My class definition:
public class UseGps extends Activity implements LocationListener
If Í try to override LocationListener methods like this
1)
@Override
public void onLocationChanged(Location loc)
2)
@Override
public void onProviderDisabled(String provider)
3)
@Override
public void onProviderEnabled(String provider)
he gives me a compilation error saying
The method onStatusChanged(String, int, Bundle) of type UseGps must override a superclass method remove override.
The same for 2) and 3)
What is wrong here?
source
share