0

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?

enter image description here

Mehul Patel
  • 111
  • 1
  • 12
poqueque
  • 276
  • 3
  • 14

1 Answers1

0

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/

Muhammad Saad Rafique
  • 3,158
  • 1
  • 13
  • 21