title: Unable to query ContentResolver to get downloaded file's name from my_downloads but works fine in all_downloads
body: <p>My app is set up to activate once a file with extension <em>.myappdata</em> is opened.  It accomplishes this through this intent-filter:</p>
  
  <pre><code>    &lt;activity
          android:name="com.myapp.ExamineFileActivity"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW"/&gt;
              &lt;category android:name="android.intent.category.BROWSABLE"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
              &lt;data android:scheme="file" android:pathPattern=".*\\.myappdata" android:mimeType="*/*"/&gt;
              &lt;data android:scheme="content" android:pathPattern=".*\\.myappdata" android:mimeType="*/*"/&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>I open a Chrome web browser (on a Nexus 7 running Android 6.0.1) and go to a website that downloads a file named "file123.myappdata" and click the Open link within Chrome.</p>
  
  <p>That action triggers my app to open and this code to run, which will get the filename that was downloaded:</p>
  
  <pre><code>    Uri uri = this.getIntent().getData();
      if (uri.getScheme().equals("content")) {
          Cursor cursor = getContentResolver().query(uri, null, null, null, null);
          try {
              if (cursor != null &amp;&amp; cursor.moveToFirst()) {
                  return cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
              }
          } finally {
              cursor.close();
          }
      }
  </code></pre>
  
  <p>when this code runs (after I open the file from Chrome) the uri is <em>content://downloads/<strong>my_downloads</strong>/1602</em> and <em>cursor.moveToFirst()</em> returns <strong>false</strong></p>
  
  <p>Then I exit my app and go to the Downloads app and open the exact same file.  That triggers my app to open, the same code to run except with uri <em>content://downloads/<strong>all_downloads</strong>/1602</em> (everything else in the uri is exactly the same), the <em>cursor.moveToFirst()</em> call returns <strong>true</strong> and the cursor.getString() method returns "file123.myappdata" (which is exactly what I want).</p>
  
  <p>Why is the cursor.moveToFirst() method not finding any data when I open the downloaded file from Chrome (giving me "my_downloads" in the uri) versus opening the same downloaded file from Downloads (giving me "all_downloads" in the uri)?</p>