0

I have quite large SQLite database (around 80.000 lines), and i whant to use it in my application. So the question is: how to implement this? I found solution:

  • adding file.db into project/assets folder
  • write my own SQLiteOpenHelper

is enought for that purpose? will it work fine with such large ammount of records?

1

1 Answer 1

1

Use SQLiteAssetHelper. There are instructions for packaging the database (ZIP file inside of assets/). Then you extend SQLiteAssetHelper instead of SQLiteOpenHelper. It will handle unpacking the database for you.

The number of database "lines" does not matter. However, bear in mind that an APK cannot be over 50MB without running into problems (e.g., cannot distribute via the Play Store).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.