Google plus SSO sign out functionality in android app -


I know how to work for SSO while using Google Plus in Android I have successfully used the same app I'm logging into the app.

Now I need to log out the user so that he can re-enter with a new account with Google Plus. I need to do this in another activity.

I tried to use the disconnect () method but did not get any success.

Any help is appreciated on this.

The related part is how you can sign out the user:

  if (mGoogleApiClient.isConnected ()) {Plus.AccountApi.clearDefaultAccount (mGoogleApiClient); MGoogleApiClient.disconnect (); MGoogleApiClient.connect (); }    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -