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
// deprecatedだけど新しいのは API 23からなので仕方ない | |
val intent = AccountManager.newChooseAccountIntent( | |
null, | |
null, | |
arrayOf("com.google"), | |
true, | |
null, | |
null, | |
null, | |
null | |
) | |
// onActivityResultで取り出す | |
val name = data?.getStringExtra(AccountManager.KEY_ACCOUNT_NAME) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment