I want to use this code to enter my account:
Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient); startActivityForResult(signInIntent, RC_SIGN_IN);
for conclusion
new ResultCallback<Status>() { @Override public void onResult(Status status) { disconnect(); } });
But when the user restarts the application, and he has already logged in (and will not log out before), is it possible to detect this state "currently logged in"?
Obviously, in the settings (general settings) of the application, you can save "logged in", but is there a way to detect using google api?
source share