Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class LoginActivity extends Activity implements LocationListener {
@Override
public void onLocationUpdated(Location location){
// do something
}
@Override
protected void onStart(){
LocationManager.getInstance().register(this);
}
@Override
protected void onStop(){
LocationManager.getInstance().unregister(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment