Open benthemobileguy opened 5 years ago
Which is your getFileStreamPath? Can you describe more clearly
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 saved a file to my internal storage with this path: file = getFileStreamPath(fileName); I am attempting to access the file with this line of code but it keeps returning null each time:
try{ File file = getFileStreamPath(fileName); folioReader.openBook(file.getAbsoluthPath); Log.e("file: ", "file: " + filePath); } catch (Exception e){ e.printStackTrace(); } }