Using raw resources drive to the same result: "Error rading asset data" :(
On Wed, Apr 24, 2013 at 8:33 PM, Tom Opgenorth <t...@opgenorth.net> wrote: > Just a thought: what happens if you put these binary files into > Resources/raw instead of the Assets folder? Maybe the Android > ResourceManager will like these files better than the AssetManager? > > > On Wed, Apr 24, 2013 at 11:02 AM, Francesco Colombo < > francesco.colo...@gmail.com> wrote: > >> Hi, >> >> I'm having a strange issue in android 4.0 wiht Sam G2. I'm trying to read >> some binary files, which are ~2mb, from the Asset folder. Some of these >> files are read without any problems, some others make the app crash with >> the error: "Error reading asset data. Unable to access asset data: -1". >> >> I knew there were a limitation in Android 2.2 (and below) where >> compressed assets should not be > 1mb. But I'm facing the issue on Android >> 4.0. >> >> This is really strange to me. It seems that the low level api fails to >> read certain binary files. >> >> I tried also to read the file in chunks of 1024 byte. It fails when I try >> to read the last chunk. >> >> any idea or suggestion? >> >> >> >> _______________________________________________ >> Monodroid mailing list >> Monodroid@lists.ximian.com >> >> UNSUBSCRIBE INFORMATION: >> http://lists.ximian.com/mailman/listinfo/monodroid >> >> > > > -- > http://www.opgenorth.net > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > >
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid