googleworkspace / android-samples

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

List files from folder #64

Closed phukhanhlee closed 6 years ago

phukhanhlee commented 7 years ago

I loaded files from google driver folder

                com.google.android.gms.common.api.Status status = Drive.DriveApi.requestSync(mGoogleApiClient).await();
                if (status.isSuccess()) {
                   entryBuffers = folder.queryChildren(getGoogleApiClient(), query).await(); //-> data to show list files in folder.
                   ....
              }

Everything is ok but when i delete a file in goolge driver folder or add files manually in web browser, "entryBuffers" is outdated, it still load old files. But when i upload file by codes , "entryBuffers" is updated correctly.

Why I called requestSync and it is success but queryChildren is still outdated.

So what should i do to load latest files in google driver folder ?

phukhanhlee commented 7 years ago

Files Created 4:40 PM with Google Drive Web -> don't return in queryChildren Files Created 5:10 PM with Dict Box (my app) -> return correctly

Does I just only load files with create by my app ?

asrivas commented 6 years ago

are you still having this issue?

erickoledadevrel commented 6 years ago

Closing due to inactivity.