title: Drive API manifest and integration with Drive App
body: <p>I have an Android app that creates its own files in Google Drive with the mime type <code>application/vnd.test.type</code></p>
  
  <p>I would like to make my app handle requests for this file type when opened by the Google Drive app as described <a href="https://developers.google.com/drive/integrate-android-ui" rel="noreferrer">here</a>.</p>
  
  <p>My activity to handle the opening of the file is in my manifest file as follows:</p>
  
  <pre class="lang-xml prettyprint-override"><code>    &lt;activity android:name="DriveHandlerActivity" 
                android:label="@string/app_name" 
                android:icon="@drawable/icon" 
                android:exported="true" &gt;
          &lt;meta-data android:name="com.google.android.apps.drive.APP_ID" 
                     android:value="id=MY_ID"/&gt; 
          &lt;intent-filter &gt;
              &lt;action android:name="com.google.android.apps.drive.DRIVE_OPEN"/&gt;
              &lt;data android:mimeType="application/vnd.test.type"/&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt; 
  </code></pre>
  
  <p>When I attempt to open the file in the Google Drive app I get the "Open with..." dialog as expected with my app listed as the only entry capable of dealing with this file type. Unfortunately after confirming the action, I then get a dialog thats says.</p>
  
  <p><img src="https://i.stack.imgur.com/kswo0.png" alt="Error Dialog"></p>
  
  <p>My only option then is to press the "Cancel" button which returns me to the Google Drive app.</p>
  
  <p>I am not totally convinced I have the meta data correct as the ID is referred to using different names depending on where you look. Some <a href="https://developers.google.com/drive/integrate-android-ui" rel="noreferrer">documentation calls it the <strong>App ID</strong></a>, some call it the <strong>Project ID</strong> <a href="http://youtube.googleapis.com/v/xRGyzqD-vRg" rel="noreferrer">(See here at 26:44)</a>.  I have tried using both the "Project ID" as listed in my Google Apis Console and also the project number (from the URL) on the same page. I get the same error regardless of which value I choose as the ID.</p>
  
  <p>As far as I am aware, the next step should be to handle the intent in my app but due to the error described, the intent never arrives. Can anybody tell me what I am doing incorrectly?</p>