I have just integrated a Google+ Sign in button for my app. Everything works perfectly when you sign in, grant access and get the people information. However, I have a feeling I have one huge flaw in how I am doing this that may prevent a proper G+ sign out.
I have a LoginActivity where I create the mGoogleApiClient instance. As soon as I do the Login Check and update my DB and var's with the persons info, I finish() theLoginActivity and go to my MainActivity. This is where the user can choose to sign out.
However, I am afraid that I need the same instance of mGoogleApiClient; but this was wiped when I finished the LoginActivity. So I slightly modified things and tried to store it as a static var in another Activity I ahve where I use some variables globally -- that extends Application, but it doesn't seem to be signing out.
Am I on the right path or do I need to do this differently?