Skip to content

Instantly share code, notes, and snippets.

@markchristopherng
Created October 13, 2018 01:20
Show Gist options
  • Save markchristopherng/85fa1f8c563aa0416cd209688af4744f to your computer and use it in GitHub Desktop.
Save markchristopherng/85fa1f8c563aa0416cd209688af4744f to your computer and use it in GitHub Desktop.
private void requestHint() {
HintRequest hintRequest = new HintRequest.Builder()
.setPhoneNumberIdentifierSupported(true)
.build();
PendingIntent intent = Auth.CredentialsApi.getHintPickerIntent(
googleApiClient, hintRequest);
try {
getActivity().startIntentSenderForResult(intent.getIntentSender(),
RESOLVE_HINT, null, 0, 0, 0);
} catch (IntentSender.SendIntentException e) {
Timber.e(e);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment