Solved How to connect a SQLite file to an Android project
-
Hi!
How to connect a SQLite file to an Android project?
SQLite database cannot be placed in resources(say it is impossible). -
@Mikeeeeee said in How to connect a SQLite file to an Android project:
SQLite database cannot be placed in resources(say it is impossible).
It is possible, but to use it after installing the app you will have to copy it to a writeable location first.
Use https://doc.qt.io/qt-5/qstandardpaths.html#writableLocation to find a writeable location. -
But how to add a SQLite file to a project so that it is added to .apk?
-
@Mikeeeeee You already answered your question: using a resource file
-
Thanks. Before why it is not compiled, and is now working.