1

I am developing an application in which I have to use existing database but when I try to copy small data base It is copying easily but when I try to copy my database which is of 2.5mb it is not copying some times it shows o bytes of memory copied I have followed some tutorial for eg http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ is one of them but I can not resolve it. Can any body give me suggestion or any useful tutorial that can help me resolve it

Nitin
  • 1,966
  • 4
  • 22
  • 53

1 Answers1

1

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

How to read LARGE Sqlite file to be copied into Android emulator, or device from assets folder?

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

Community
  • 1
  • 1
Jeff Gilfelt
  • 26,131
  • 7
  • 48
  • 47
  • Sir I have used one of answer from your suggestion https://gist.github.com/717801 I am not able to open the data base. but do you have any idea and thanks for help – Nitin Nov 04 '11 at 12:57
  • Then why not try one of the less code intensive solutions, like renaming your file database to .mp3 or .jet to prevent aapt compression? – Jeff Gilfelt Nov 04 '11 at 16:53