Er the limit you are reaching there is not the file size in the .apk, but
just the amount of storage available on the device.

There is indeed a limit of 1MB on an individual file, if that file is stored
compressed.  This is really something we need to get rid of, there is no
reason for it except we haven't had time to write the code to do streaming
decompression so right now when you open such an asset it needs to load it
into a full in-memory buffer, and the current limit on such a buffer is
1MB.  Sad but true. :}

On Thu, Oct 1, 2009 at 11:40 PM, faye <[email protected]> wrote:

>
> I am currently developing a dictionary application with voice
> database. I would like to know about the current Android limitation on
> the file size.
>
> I am using a self-provided sqlite database ( > 50mb ) . I tested that
> once the built .apk size exceeds ~30mb the app will not be installed
> onto the simulator (INSTALL_FAILED_INSUFFICIENT_STORAGE).
>
> Could anyone confirm me that if up until now there is no way to embed
> such large size files in a single apk ( Aimed to sell at Google Market
> without requiring user to download datafile afterwards).
>
> Also, is there a limitation of 1,048,576 bytes for a single file in
> the assets folder ?
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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