[mono-android] Random Access on Assets

Aaron Knabb aknabb at mobileepiphany.com
Wed Mar 23 12:30:38 EDT 2011


I feel like maybe I'm misunderstanding something. I have a fairly sizable
file (10-20mb) that I need to deploy with my app. I need to be able to
perform .Seek() on its stream to pull various parts out. Asset streams do no
permit seeking. I could take the file out of assets and copy it to the file
system. This separate copy would allow for seeking. However, having to
perform this copy every time I hit F5 and deploy my app in development seems
extremely clunky and time-consuming. I update this file pretty frequently
during development.

Thus, I was trying to get random access to the asset which I thought would
allow for seeking. This didn't seem to work even after adding in the file
type exclusion in the project settings as discussed here.

So I guess I'm just wondering if there is a way to automatically deploy a
file along with my application every time I run in vis studio and have that
file allow seeking. If not, I'll just work around it by doing some copying
mechanism out of the assets.

Thanks for the input. I realize this is probably an odd question,

-Aaron


On Sat, Mar 19, 2011 at 7:52 AM, Jonathan Pryor <jpryor at novell.com> wrote:

> On Mar 19, 2011, at 8:52 AM, "Konaju Games (Dev)" <dev at konaju.com> wrote:
>
> Android 2.3 lifted the restriction on streaming assets from an .apk and the
> size of assets in the .apk.
> <http://developer.android.com/sdk/android-2.3-highlights.html>
> http://developer.android.com/sdk/android-2.3-highlights.html
>
> Now all we need is Google to provide the Android 2.3 XML that is used to
> produce the MonoDroid SDK
>
>
> Google has, and Preview 14 included API level 10 support (Android v2.3.3).
> It's 3.0 that we currently missing.
>
>  - Jon
>
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110323/b9c72c75/attachment.html 


More information about the Monodroid mailing list