How to copy a large database that takes up a lot of memory from the resource folder into my application?

I am developing an application in which I have to use an existing database, but when I try to copy a small database. This copying is easy, but when I try to copy my database, which is 2.5 MB in size, it does not copy several times, it shows o memory bytes copied. I followed some tutorial, for example, http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ is one of them, but I cannot solve it. Can any body give me a suggestion or any useful guide that can help me solve it.

+1
source share
1 answer

This is caused by aapt compressing the file in the folder with your resources. See the links below for various solutions:

How to read a LARGE Sqlite file for copying to an Android emulator or device from a file folder?

http://ponystyle.com/blog/2010/03/26/dealing-with-asset-compression-in-android-apps/

+1
source

Source: https://habr.com/ru/post/922813/


All Articles