I've searched on Google but I don't find anything that can really help me.
I've tested some codes.
One test is this: Get list of files from a specific folder in google drive but it show only 3 files/folders (in // md gives you the file info
, I've added md.getTitle()
) or nothing, I don't know why.
Then I've tried with this: https://github.com/googledrive/android-demos/blob/master/app/src/main/java/com/google/android/gms/drive/sample/demo/ListFilesInFolderActivity.java, changed the last method. I've used the MetadataBufferResult result
so:
MetadataBuffer metadataBuffer = result.getMetadataBuffer();
Log.d("DRIVE","size: "+metadataBuffer.getCount());
metadataBuffer.release();
And the "size" is like the previus test: it is 3, 0 or 1, but there are more folder/files.
How can I list all files in a folder? Do you give me an example?