I need to pick files from the device,
Here is my 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);
The picked URIs url always like this on Android 10 devices,
content://com.android.providers.downloads.documents/document/msf:75878
I tried many different solutions to get the file path from this URI but with no luck,
Note: my app works perfectly on pre-Android 10 devices and I am able to get the picked files paths.