I applied google plus in my application and when I log in via Google and then my application shows the whole google account that are syncing on my Android device. My problem is that when I log out of Google Plus and register again, then my application does not ask me to choose an account (do not show Google account synchronization on my Android device), it only appears the first time I install the application and my application directly logs into the account that I choose when I log in for the first time. I am attaching my exit code. I spent a lot of time on this problem, but could not find a solution.
private void signOutFromGplus() { if (SignInActivity.mGoogleApiClient.isConnected()){ Plus.AccountApi.clearDefaultAccount(SignInActivity.mGoogleApiClient); SignInActivity.mGoogleApiClient.disconnect(); SignInActivity.mGoogleApiClient.connect(); } }
rahul source share