:( I'm going to try on another device. I whish also try the "uncompressed" way but I'm unable to achieve this. If I open the project properties and insert some values inside the textbox which expects file types which will be "uncompressed", values are not saved!
On Wed, Apr 24, 2013 at 7:16 PM, Jonathan Pryor <[email protected]> wrote: > On Apr 24, 2013, at 1:02 PM, Francesco Colombo < > [email protected]> wrote: > > 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". > > It's possible it's (yet another) Samsung-specific bug. (At this point > ~nothing would surprise me wrt Samsung. Yes, I'm jaded.) > > For sanity, I would suggest trying on another hardware device or the > emulator, and see how things perform there. > > > any idea or suggestion? > > You could also try disabling compression on that file, or use Build action > EmbeddedResource instead of AndroidAsset and use > Assembly.GetManifestResourceStream() to obtain the data. (Not useful if > you're e.g. using a WebView with file:///android_asset, but could be > useful...) > > - Jon > > _______________________________________________ > Monodroid mailing list > [email protected] > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid >
_______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
