I wrote a sketch that opens and reads a .db file of about 200,000 stars. In Processing 3 on desktop it reads the db file, uses a specific query to get about 6000 stars that are displayed as texture.point(X,Y). I took that code and stuck it in an android studio project and uploaded it to android. The processing code works except when I run debug the app, the debug window shows the following error:
W/System.err: java.sql.SQLException: opening db: ‘/hygdata.db’: open failed: EROFS (Read-only file system)
I moved the db file into the same directory as the mainactivity and the class file with the processing code. This only changed the error from access denied to EROFS, but nothing I’ve tried will let SQLite open and read the db file. I even tried lowering the target api to 17.
How do I get it to load and open? I don’t have an SD card and just using the internal storage.