title: How to download google drive file in android
body: <p>I wanted to download file from google drive. 
  For this I have implemented in Google Drive SDk and used the following method.</p>
  
  <pre><code> @Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          switch (requestCode) {
          case REQUEST_CODE_OPENER:
              if (resultCode == RESULT_OK) {
                  DriveId driveId = (DriveId) data.getParcelableExtra(
                          OpenFileActivityBuilder.EXTRA_RESPONSE_DRIVE_ID);
  
  
              }
              finish();
              break;
          default:
              super.onActivityResult(requestCode, resultCode, data);
          }
      }
  </code></pre>
  
  <p>I also tried using output stream but not able to save data to a file.</p>
  
  <p>I have tried searching around this, but couldn't find any useful link which can guide me how to download and store file.</p>