Skip to content

Instantly share code, notes, and snippets.

@MehulKK
Last active May 10, 2019 19:15
Show Gist options
  • Save MehulKK/72fb68d00a82501834a9c77633e69b1f to your computer and use it in GitHub Desktop.
Save MehulKK/72fb68d00a82501834a9c77633e69b1f to your computer and use it in GitHub Desktop.
// Obtain the phone number from the result
fun onActivityResult(requestCode:Int, resultCode:Int, data:Intent) {
super.onActivityResult(requestCode, resultCode, data)
if (requestCode == RESOLVE_HINT)
{
if (resultCode == RESULT_OK)
{
val credential = data.getParcelableExtra(Credential.EXTRA_KEY)
// credential.getId(); <-- will need to process phone number string
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment