Reputation: 276
I want the user to choose an existing account from my Android App. I'm using
Intent googlePicker = AccountManager
.newChooseAccountIntent(null, null, new String[]{GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE},
true, null, null, null, null);
a.startActivityForResult(googlePicker, ACCOUNT_REQUEST_CODE);
but I cannot find in the documentation the way to avoid requesting to create a new account. Is it possible to achieve?
Upvotes: 0
Views: 1768
Reputation: 3189
You need google sign in for that:
First of all visit below link:
https://developers.google.com/identity/sign-in/android/start-integrating
Then follow this tutorial:
https://androidclarified.com/google-signin-android-example/
Upvotes: 0