开发者

Titanium appcelarator Data exceeds UNCOMPRESS_DATA_MAX (3964928 vs 1048576) in Android 2.2

开发者 https://www.devze.com 2023-03-14 11:36 出处:网络
We are using Titanium to develop Android applications. We have a database close to 4 MB size and gets the error

We are using Titanium to develop Android applications. We have a database close to 4 MB size and gets the error

"D/asset ( 310): Data exceeds UNCOMPRESS_DATA_MAX (3964928 vs 1048576)"

when running in emulator. I learned that it is because android supports only 1MB as maximum file siz开发者_如何转开发e in 2.2.

How can we fix this for 2.2 using Titanium?


this is not an appcelerator issue it is just a constraint of the underlying technology, Android.

I ran into this problem before and implemented a similar renaming workaround as you have.


I did the same thing once before, but I found that another solution is to simply download the database from an internet location to the apps private storage. That way you don't have to hassle with copying a database nor does your app double in size when it copies it from your assests.

Of course, not everyone is able to host a file like that, so in that case you are just going to have to stick with the rename workaround.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号