Closed phukhanhlee closed 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 ?
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
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 ?