Last active
June 9, 2019 12:11
-
-
Save hanuor/a0f04389ab73e1c3487595b70abdd4c7 to your computer and use it in GitHub Desktop.
Medium article
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
@Override | |
public void onActivityResult(int requestCode, int resultCode, @Nullable Intent intent) { | |
if (resultCode == AutocompleteActivity.RESULT_OK) { | |
Place place = Autocomplete.getPlaceFromIntent(intent); | |
// place.getName(); | |
// place.getAddress(); | |
} else if (resultCode == AutocompleteActivity.RESULT_ERROR) { | |
Status status = Autocomplete.getStatusFromIntent(intent); | |
} else if (resultCode == AutocompleteActivity.RESULT_CANCELED) { | |
// The user canceled the operation. | |
} | |
super.onActivityResult(requestCode, resultCode, intent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is great