Reputation: 1
Iam using Android Studio Ladybug. I put some text files in /sdcard/Documents/Data/ in "Pixel 9 Pro API 30" emulator. The directory is readable, the files are not. Shall I put them in some other directory, or is there some way to make them readable
val path = "/sdcard/Documents/"
val dir = File(path)
val d = dir.canRead() //d = true
val fle = File(path + "Data.txt")
val f = fle.canRead() //f = false
Upvotes: 0
Views: 8