Get real file path from URI on Android 10 , Also content URI is suffixed with msf:documentid in Android 10

Android 10 has scoped storage enabled by default. This means you cannot directly get access to the external storage path - take a look here.

You can do what is suggested by setting requestLegacyExternalStorage to true in your app's AndroidManifest.xml, but keep in mind this will only work for targetSdk 29 and not for 30+.

If you're trying to access media, this should be done through the MediaStore. Otherwise, take a look at the scoped storage docs.