After the user signed in, unless they signed out, this should be automatic. At least on my phone (4.3), when I signed in my app, I had to manually sign out to test login with Google+ again because it already used the last account to login the second time I launched the app. I have three accounts on this device.
-- Douglas Drumond *GDG Campinas <http://www.gdg-campinas.org/> – **eee19.com* <http://eee19.com/> *gplus.to/douglasdrumond * – *@douglasdrumond <https://twitter.com/douglasdrumond>* 2013/9/19 FReDD <[email protected]> > Hi everyone, > > sorry if this topic has been discussed before, I didn't find a definitive > answer. > I am developing a game with Google Play Game capabilities (leaderboards & > achievements). > I implemented Google+ sign-in, following the tutorial and the provided > code examples. > > Everything is working fine, but the problem I am currently facing occurs > in the following scenario, > at least on an Android 2.2 device : > > - I have two Google accounts, both of them are declared and syncing on > my device > - I start my game, and a dialog (of my own) asks me whether I want to > use Google Play Game capabilities, > and therefore if I want to sign in to Google+ > - I click 'Yes' and my code starts calling the Google+ sign-in API > - Android Google+ API kicks in and asks me to choose one of my two > accounts to sign in > > What I'd like for my future players is allow them to do this once, and > never bother to sign in again (if they > allow it, of course). Is there a way to tell the Google+ API to use one > account in particular and use it to > sign in automatically ? > I can understand that a completely silent sign-in can be a privacy > concern, but is there a way to store > which account was used and use it later ? > > Thanks > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

