Skip to content

Instantly share code, notes, and snippets.

@ipereziriarte
Last active December 11, 2015 07:19
Show Gist options
  • Save ipereziriarte/4565879 to your computer and use it in GitHub Desktop.
Save ipereziriarte/4565879 to your computer and use it in GitHub Desktop.
Get an address using a location object
/**
* Gets a reverse address from a location
*/
private void getAddress() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD
&& Geocoder.isPresent()) {
(new ReverseGeocodingTask(getSherlockActivity())).execute(new Location[] {
mLocation
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment