title: Google Drive Java API: next page token always null
body: <p>I have the following code which lists contents of a directory:</p>
  
  <pre><code>    final Drive.Files.List request = drive.files().list()
              .setQ("trashed=false and ('" + dirid + "' in parents)")
              .setFields("items(title,mimeType,downloadUrl,id)");
      final List&lt;IFile&gt; result = new ArrayList&lt;IFile&gt;();
      do {
          final FileList files = request.execute();
          for (com.google.api.services.drive.model.File file : files.getItems()) {
              final IFile f = toFile(file, directory);
              result.add(f);
          }
          request.setPageToken(files.getNextPageToken());
          // @todo mvy next page token is null????
          log.debug(directory + ": " + result.size() + " files so far, next page token=" + request.getPageToken() + " " + files.getNextPageToken() + " " + files.getNextLink());
      } while (request.getPageToken() != null &amp;&amp;
              request.getPageToken().length() &gt; 0);
  </code></pre>
  
  <p>If I browse large directory with 206 files, only the first 100 files are returned and the next page token is always null. Is this a bug or am I missing something?</p>
  
  <p>I took the example code from here: <a href="https://developers.google.com/drive/v2/reference/files/list" rel="nofollow">https://developers.google.com/drive/v2/reference/files/list</a></p>
  
  <p>The code above always prints </p>
  
  <pre><code>0B6WQxw8r8n6fRVFBVDhHc3ZGa3M[testing/konky/material-design-icons-2.0/social/drawable-xxhdpi/]: 100 files so far, next page token=null null null
  </code></pre>