1
I’m having a little problem developing an app. I need to read the information of a file that is inside the . apk of my app, ie. That file you need to read is inside my app and not outside it.
This file is inside the same package where the java class is trying to read it, but every time I run, it happens:
Exception Caused by: android.system.Errnoexception: open failed: ENOENT (No such file or directory)
I’m trying to get the file this way:
FileInputStream fileInputStream = new FileInputStream("teste.js");
The error is going in that line. Does anyone know how I can fix it? How to get the file path correctly?
Thank you.
To my knowledge you can only access files that are underneath the folder
\res
.– ramaral
I tried to put the file in libs folder and even then it didn’t work. :(
– user1657394