Open benthemobileguy opened 5 years ago
Can you try this:
var path: String = context.getFilesDir().getAbsolutePath()
I finally resolved my issue. I discovered from my device file explorer that my files were saved as .txt instead of .epub extension. After converting them, it worked smoothly with this code:
var path: String = context.getFilesDir().getAbsolutePath()
Thanks for your effort!
I have some
epub
files that I saved to android internal storage. I have been using thislibrary to display this files but it keeps telling me the path destination is null.So, I checked android studio's
Device File Explorer
and I found the files this location:/data/data/packageName/files/FileName
Am using this code to get path:
It returns this path on my
log cat:
There seems to be a difference in the locations paths.
So, my question is this: how do I get path to this location?