Using such code it is possible to link my app and use account.
if (mGoogleApiClient == null) {
mGoogleApiClient = new GoogleApiClient.Builder(thi
I found this up-to-date solution:
if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) {
mGoogleApiClient.clearDefaultAccountAndReconnect().setResultCallback(new ResultCallback() {
@Override
public void onResult(Status status) {
mGoogleApiClient.disconnect();
}
});
}
The usage of
Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);
is deprecated
https://developers.google.com/android/reference/com/google/android/gms/plus/Account