Hi, This is a new thread about an old bug.
There's a bug in the AssetManager that, if you try to read using a byte buffer a raw resource bigger than 512k (in G2), it will throw this exception: java.io.IOException at android.content.res.AssetManager.readAsset(Native Method) at android.content.res.AssetManager.access$800(AssetManager.java: 36) at android.content.res.AssetManager $AssetInputStream.read(AssetManager.java:542) If you call is.read(), reading one byte per time, it WORKS. However, for a 6MB file, it takes just too long reading 6 million bytes. Questions: 1. Was this bug already fixed in later android devices? My G2 is 1.6. 2. Are there any *usable* workaround for it? 3. Is there a way to access the raw resource from C? thanks guich -- 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