ConnectionResult function ( ) { if ( ! mGoogleApiClient . isConnected ( ) ) { return mGoogleApiClient . blockingConnect ( ) ; } else { return null ; } }
connect the googleapiclient if not already connected.note that this assumes you 're already running in a background thread and issues a googleapiclient #blockingconnect call to connect . concode_field_sep String TAG concode_elem_sep GoogleApiClient mGoogleApiClient concode_field_sep boolean saveDriveFile concode_elem_sep String getContentsFromDrive concode_elem_sep Status requestSync concode_elem_sep DriveId getOrCreateFile concode_elem_sep DriveId getDriveFile concode_elem_sep DriveId createEmptyDriveFile