title: Setting multiple parents for Google Drive File
body: <p>Read several SO posts (ex. <a href="https://stackoverflow.com/questions/11608759/google-drive-sdk-about-parents-of-a-file">here</a>) that allude to Google Drive files being able to have multiple parents, i.e. same file in multiple folders.   I wanted to test this out, as I am brainstorming ideas for backing up collections of files for my android app, without having to reload the entire collection on each backup.</p>
  
  <p>Unfortunately, when i set the file metadata as such below, the file does not upload to either parent-folder.  It does upload and appear when I comment out one of the parents.</p>
  
  <p>As a result, I assume that the ability to set multiple parents is reserved for special folders like "trash" or "favorites?"   Or do i need to try updating the file after initial creation?   </p>
  
  <pre><code>    List&lt;ParentReference&gt; parents = new ArrayList&lt;ParentReference&gt;();
      parents.add(new ParentReference().setId(parentId1));
      parents.add(new ParentReference().setId(parentId2));
  
  
  static private File create_File(String fileName, List&lt;ParentReference&gt; parents){
  
      String mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension("db");
  
      System.out.println("Mimetype " + mimeType);
  
      // File's metadata.
      File file = new File();
      file.setMimeType(mimeType);
      file.setTitle(fileName);
      file.setParents(parents);
  
      return file;
  }
  </code></pre>