java - How to logout from Google+ Account? -


after signin google plus on android app.

how can logout, can sign in account.

don't know if googleauthutil.invalidatetoken answer or not...

thanks

if using google+ sign in (and should - work flow better, both developers , users), can sign out user following guide's example:

@override public void onclick(view view) {     if (view.getid() == r.id.sign_out_button) {         if (mplusclient.isconnected()) {             mplusclient.cleardefaultaccount();             mplusclient.disconnect();             mplusclient.connect();         }     } } 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

What is the difference between data design and data model(ERD) -

ios - Can NSManagedObject conform to NSCoding -