I have been asked to integrate some C++ code into an Android project using the NDK. I have some test C++ code up and running successfully. Now I am attempting to swap the test code for the real C++ which wants to access an SQLite database file. The original C++ executes:
fopen64 (databasefilename, "r")
where databasefilename
is just the name of the file itself with no path.
So now my question is, where should I put the database in my project? assets
? res
? And once placed there, what path (if any) will I have to put before databasefilename
in order for the fopen64 to work?