How to get a list of files that already exist on the device with Kotlin?
I'm trying to get a list of files from directories, but I never get the name of files that already exist, it just returns the files I created with my app.
For example, inside the Documents folder I have 3 pdf files that I loaded from Android Studio and a test.txt that my app created, but when I run the code to list the files, only test.txt appears.
I already put the permissions in the Manifest, what do I need to do for it to work?
import androidx.appcompat.app.AppCompatActivity
import...