googleworkspace / android-samples

Android samples for Google Workspace APIs
Apache License 2.0
636 stars 410 forks source link

Access Google Drive with googleAPIClient is deprecated and not working anymore ? #67

Closed phukhanhlee closed 6 years ago

phukhanhlee commented 6 years ago

private void initGoogleAPI(){ if (mGoogleApiClient == null) { mGoogleApiClient = new GoogleApiClient.Builder(this) .enableAutoManage(this,this) .addApi(Drive.API) .addScope(Drive.SCOPE_FILE) .addConnectionCallbacks(this) .build();

    }
}

@Override public void onConnected(@Nullable Bundle bundle) { -> not call anymore }

And i see seem code demo has change ?

asrivas commented 6 years ago

Yes, please follow the updated code in: https://github.com/gsuitedevs/android-samples/blob/master/drive/demos/app/src/main/java/com/google/android/gms/drive/sample/demo/BaseDemoActivity.java