title: Android file picker from external storage not working on API level > 24
body: <p>I have running code of choose <code>file</code> from <code>file manager</code> , its working fine on <code>API level 23</code> but after that it is giving problem on latest devices. Now by google i knew that to use it on latest device i need to use content provider , i applied some code but it's not working . I want only path of <code>selected file and file will be audio</code>.</p>
  
  <p>Manifest:</p>
  
  <pre><code> &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity android:name=".MainActivity"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;provider
          android:name="androidx.core.content.FileProvider"
          android:authorities="com.example.contentproviderfilechoose"
          android:exported="false"
          android:grantUriPermissions="true"&gt;
          &lt;meta-data
              android:name="android.support.FILE_PROVIDER_PATHS"
              android:resource="@xml/provider_paths"/&gt;
      &lt;/provider&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>Java code:</p>
  
  <pre><code>  if (ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {
  
  
                  Uri uri = null;
                  Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
                  intent.setDataAndType(uri, "*/*");
                  intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
                  startActivity(intent);
              } else {
                  requestStoragePermission();
              }
  
  
  
  
   @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      if (requestCode == CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE) {
          if (resultCode == RESULT_OK) {
  
               Uri selectedFileUri = data.getData();
              //selectedFilePath = FilePath.getPath(MainActivity.this, selectedFileUri);
  
  
          } else { // Result was a failure
              Toast.makeText(this, "Picture wasn't taken!", Toast.LENGTH_SHORT).show();
          }
      }
  }
  </code></pre>