title: Unable to retrieve Google Drive files and folders using new Drive API
body: <p>I am trying to get a list of Files in a Folder from Google Drive from my Android app but have been unsuccessful so far.  I'm using google-api-drive-v1-rev4-java-1.6.0-beta and google-api-client-1.9.0.  I'm also building my code similar to calendar-android-sample and tasks-android-sample from the samples at <a href="http://code.google.com/p/google-api-java-client/wiki/Android" rel="nofollow">http://code.google.com/p/google-api-java-client/wiki/Android</a>.</p>
  
  <p>I cant seem to find how to use files() to get a list of folders or even the id of the folder I want.  The tasks-android-sample uses '@default' in the get() method to get a list of tasks.  What would I use in the get method to get a list of folders first, search for my folder, get the id, then get a list of files in that folder?</p>
  
  <p>AsyncLoadDocs.java: (Note: I'm using getFields() just to see if the Get object contains any metadata, which at this point doesn't.)</p>
  
  <pre><code>package com.mysite.myapp.docs;
  
  import com.google.api.services.drive.Drive;
  import com.google.api.services.drive.Drive.Files;
  import com.google.api.services.drive.Drive.Files.Get;
  import com.google.api.services.drive.model.File;
  
  import android.app.ProgressDialog;
  import android.os.AsyncTask;
  import android.util.Log;
  import android.widget.ArrayAdapter;
  
  import java.io.IOException;
  import java.util.ArrayList;
  import java.util.Collections;
  import java.util.List;
  
  /**
   * Asynchronously load the docs with a progress dialog.
   *
   * @author ms
   */
  class AsyncLoadDocs extends AsyncTask&lt;Void, Void, List&lt;String&gt;&gt; {
  
  private static final String TAG = "AsyncLoadDocs";
  private final GDocsSync gDocsSync;
  private final ProgressDialog dialog;
  private final Drive entry = null;
  private com.google.api.services.drive.Drive service;
  
    AsyncLoadDocs(GDocsSync gDocsSync) {
      this.gDocsSync = gDocsSync;
      service = gDocsSync.driveClient;
      dialog = new ProgressDialog(gDocsSync);
    }
  
    @Override
    protected void onPreExecute() {
      dialog.setMessage("Loading docs...");
      dialog.show();
    }
  
    @Override
    protected List&lt;String&gt; doInBackground(Void... arg0) {
      try {
        List&lt;String&gt; folderNames = new ArrayList&lt;String&gt;();
  
        Get get = service.files().get("@default").setProjection("FULL");
        String fields = get.getFields();
        Log.d(TAG, "Fields: " + fields);
  
        return folderNames;
      } catch (IOException e) {
          gDocsSync.handleGoogleException(e);
        return Collections.singletonList(e.getMessage());
      } finally {
          gDocsSync.onRequestCompleted();
      }
    }
  
    @Override
    protected void onPostExecute(List&lt;String&gt; result) {
      dialog.dismiss();
    }
  }
  </code></pre>
  
  <p>Any help would be appreciated.  Both Calendar and Tasks samples successfully retrieve data from Google using my API key, why doesn't this Drive code?</p>