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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -