title: How to get Google Drive file ID
body: <p>I've created a file to Drive root using Google Drive Android API. How can I get this file ID to share it using Google Client Library?</p>
  
  <p>Getting DriveFileResult in <code>ResultCallback&lt;DriveFileResult&gt;</code> callback returns Null:</p>
  
  <pre><code>String fileId = result.getDriveFile().getDriveId().getResourceId();
  </code></pre>