Skip to content

Instantly share code, notes, and snippets.

@hanuor
Last active June 9, 2019 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanuor/a0f04389ab73e1c3487595b70abdd4c7 to your computer and use it in GitHub Desktop.
Save hanuor/a0f04389ab73e1c3487595b70abdd4c7 to your computer and use it in GitHub Desktop.
Medium article
@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);
}
@corneliouzbett
Copy link

This is great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment