I can’t read a .txt file that is on the device’s internal storage
I know that this directory cannot be read by ‘File’, but I wanted to know how I can make it possible to access it.
I can’t read a .txt file that is on the device’s internal storage
I know that this directory cannot be read by ‘File’, but I wanted to know how I can make it possible to access it.
the correct path does have a 0
(zero) in the path, not an o
you only can read that file, if your app owns it, see also Some basics on Android storage system
if not, you need SAF
Taifun
The File
component uses/needs a relative path (i.e. /Download/...
).
By the way, the full path should be file:///storage/emulated/0/...
(i.e. with 3 slashes).