I also have another application that use the same component, and it works on Android 10 (i use an old apk saved on my pc to install it), but if i try to recreate it,
It does not work anymore.
Try using a variable instead of FileName.text and initializate it with /storage/emulated/see down/your path here
0 is internal storage
sdcard is ... sd card
Note this path just should work if you are testing in apk