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