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

Reply via email to