On Mon, Dec 5, 2011 at 5:06 PM, Saied <[email protected]> wrote:
> Now I learn that the .txt asset files get compressed, and openAssetFd
> fails on compressed files!
>
> Wow.
>
> is there a workaround for this?
>
> I just changed the extension to .jpg and it worked, but that's UGLY.
>

If you store it as a raw resource instead of an asset, it won't get
compressed. I *think* there is a sample on how to this from a CP
in the SDK sample code, but not 100% sure.

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