Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save taywils/5633181 to your computer and use it in GitHub Desktop.
Save taywils/5633181 to your computer and use it in GitHub Desktop.
MyLocationListener
private class MyLocationListener implements LocationListener {
@Override
public void onLocationChanged(Location location) {
latitude = String.valueOf(location.getLatitude());
longitude = String.valueOf(location.getLongitude());
}
@Override
public void onStatusChanged(String s, int i, Bundle bundle) {
}
@Override
public void onProviderEnabled(String s) {
}
@Override
public void onProviderDisabled(String s) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment