I have just reinstalled Android SDK, Java JDK, and Eclipse Indigo back on to my laptop (after a hardware crash) and now I am getting errors within my android projects relating to the following:
@Override
public void onLocationChanged(Location location) {
int lat = (int) (location.getLatitude());
int lng = (int) (location.getLongitude());
latituteField.setText(String.valueOf(lat));
longitudeField.setText(String.valueOf(lng));
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
// TODO Auto-generated method stub
}
@Override
public void onProviderEnabled(String provider) {
Toast.makeText(this, "GPS Enabled ",
Toast.LENGTH_SHORT).show();
}
@Override
public void onProviderDisabled(String provider) {
Toast.makeText(this, "GPS Disabled ",
Toast.LENGTH_SHORT).show();
}
Eclipse tells me that I should remove @Override annotation in order to resolve the issue. These errors only seem to be related to android.location methods. I know that before the hardware crash the code worked fine without any errors, so I am not sure what the problem is. If someone could provide some advice, it would greatly be appreciated.
For the reinstall, I used the following:
Eclipse 64bit, Android SDK 32bit, Java JDK 32bit