fg1921 wrote: > It's not > really easy/possible to split the DB up in any sensible form
Run split (or equivalent Windows programs) to chop your binary database file into pieces, small enough to avoid the error. I'd start at 1MB and see if that is small enough. Since you are already unpacking it from an asset in the APK, you are presumably doing a byte-wise stream copy. In that case, open the first asset, open the output stream, copy the first asset, leave the output stream open, open the second asset, lather, rinse repeat. The result should be a byte-for-byte copy of the original file pre-split, out on your SD card. The whole process can be put into your Ant script (or Eclipse thingamajig) to automate the split at compile time. What is "not...possible" about that? > nor can we spend 10 minutes constructing it at start up. I would not expect the above to take significantly longer than copying it from the APK all as one file -- maybe a few hundred milliseconds of extra overhead for opening/decompressing a few streams instead of one. Now, I have not tried unpacking 3.5MB of data from an APK onto the SD card, so I don't have a sense for how long that will take, but I rather doubt 10 minutes will be needed. > The app we're working on is expected to have more than a thousand > downloads a day Great! > and all that bandwidth is going to be very expensive $3.50/day is expensive? (3.5MB/day * 1024 = 3.5GB/day @ $1/GB = $3.50/day) Some people spend more than that in Starbucks before 9am. ;-) -- 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 -~----------~----~----~----~------~----~------~--~---

