It turns out that raw resources are also compressed, and therefore unreadable with openRawResourceFd(raw.test);
Is there a sure way to prevent this? On Dec 5, 12:24 am, Nikolay Elenkov <nikolay.elen...@gmail.com> wrote: > On Mon, Dec 5, 2011 at 5:06 PM, Saied <saie...@gmail.com> 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en