Package SQLITE DB with my app

I created a SQLite database on my computer. I have imported it into the assets folder in the project directory. How can I access it from my Android application?
Use Java I/O to copy it to the database directory (getDatabasePath()). At this point, you can use normal Use it like a database. It is impossible to use it within the asset itself.

I created a SQLite database on my computer. I have imported it into the assets file in the project directory Folder. How can I access it from my Android app?

Use Java I/O to copy it to the database directory (getDatabasePath()). At this point, you can use it like a normal database. Using it within the asset itself is Impossible.

Leave a Comment

Your email address will not be published.