Get file path from URI on Android 10, : <p>I need to pick files from the device, </p>

<p>Here is my code, </p>

<pre><code>        Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
        intent.setType("*/*");
        String[] mimeTypes = {"image/*", "application/pdf"};
        intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);
        startActivityForResult(intent, PICK);
</code></pre>

<p>The picked URIs url always like this on Android 10 devices, </p>

<pre><code>content://com.android.providers.downloads.documents/document/msf:75878
</code></pre>

<p>I tried many different solutions to get the file path from this URI but with no luck, </p>

<p>Note: my app works perfectly on pre-Android 10 devices and I am able to get the picked files paths.</p>
