How to check if current user is logged in android.
I have an external database, I have successfully connected it to the database.
I need to check if the user is logged in or
To check if the user is signed-in, call isConnected().
if (mGoogleApiClient != null && mGoogleApiClient.isConnected()) {
// signed in. Show the "sign out" button and explanation.
// ...
} else {
// not signed in. Show the "sign in" button and explanation.
// ...
}