How to get file path on android 11+

i tried using filetools but not working for android 11+, any other possible way ?, ive been searching in the community but no solution

i choose file using activity starter and how to get path from uri?

Taifun

  1. i have tried my best to solve this problem, like using taifun and saf, and still cant solve it
  2. the problem :
    i want to copy pdf file from external storage (/storage/emulated/0/…) to ASD, as in picture, it need to get file path, and i use filetool extension, but path from uri is not working on android 11+, i tried on android 10 my app works fine
  3. any other method to solve this problem, please ?

see here Some basics on Android storage system
to read non media files contributed by other apps you need SAF

Taifun