Last active
December 11, 2015 07:19
-
-
Save ipereziriarte/4565879 to your computer and use it in GitHub Desktop.
Get an address using a location object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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