void connectAndRequestGoogleAccount ( int signInRequestCode , int errorResolutionRequestCode ) { if ( client . isConnected ( ) ) { requestGoogleAccount ( signInRequestCode ) ; } else if ( ! client . isConnecting ( ) ) { this . signInRequestCode = signInRequestCode ; this . errorResolutionRequestCode = errorResolutionRequestCode ; client . connect ( ) ; } }
Checks if the Google API Client is connected and tries to request the user Account .