fg1921 wrote:
> I must say I am surprised no one at google thinks it's important to
> provide a better way of including a pre-populated database into a
> package.

Bashing the people who might offer you assistance is a curious tactic.

> I've spent 10 hours trying to get a 3.5MB database working
> with my APK and have given up. This is what I tried, and would
> appreciate if someone has a solution:
> 
> 1. Included the db as an asset
> 2. Copied it to the SDCard at startup
> 3. The above fails with a "uncompress_data_max" when it's being pulled
> out of the Assets directory

Without source code showing how you are trying to do this, it is
difficult to comment on this specific error.

You might try:

-- Splitting the file into pieces in /assets, reassembling them as part
of your copy operation

-- Try using a raw resource rather than an asset, in case that makes a
difference

-- Try copying to on-board flash
(/data/data/your.package.here/databases) instead of the SD card, in case
that makes a difference

> I don't want to upload the file anywhere as I can't deal with all the
> extra bandwidth used.

http://www.nearlyfreespeech.net

$1/GB. A 3.5MB database costs about a third of a penny per download, and
it's pay as you go, so there's no monthly minimums or anything.

Amazon S3 or other services may be cheaper still.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, $35/Year

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to