I'm having a small problem developing an app. I need to read the information from a file that is inside the .apk of my app, that is. This 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 execute it, it happens:
exception Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
I'm trying to get the file like this:
FileInputStream fileInputStream = new FileInputStream("teste.js");
The error is taking this line. Anyone know how I can solve this? How to get the file path correctly?
Thank you.