Can I download an SQLite db on /sdcard and access it from my Android app?

前端 未结 5 1743
春和景丽
春和景丽 2020-11-30 18:38

I already found out that there is no way to bundle files in an .apk and have them on /sdcard, the best option so far being to download the large files upon first run. I came

5条回答
  •  醉话见心
    2020-11-30 19:27

    Just an idea:

    • you can put your database.db into the assets folder.

    • if your database.db file is larger than 2Mb the system is unable to compress it, so you need other one options

    • you can rename your database.db for example database.jit or database.mp3 - which are not compressed, than at the first run you can rename it to database.db

提交回复
热议问题