[mono-android] Random Access on Assets
Aaron Knabb
aknabb at mobileepiphany.com
Wed Mar 23 13:23:25 EDT 2011
I tried the uncompressed trick in 2.2 and it didn't work. And unfortunately,
I am currently unable to require our users to run 2.3.3. I have to support
2.2 (at least for now). I can work around it for now until I figure out
something better though. As it stands, I just copy the file out of the
assets.
Thanks for the suggestions,
-Aaron
On Wed, Mar 23, 2011 at 11:04 AM, Jonathan Pryor <jpryor at novell.com> wrote:
> On Mar 23, 2011, at 12:30 PM, Aaron Knabb wrote:
> > 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.
>
> Have you tried storing the file uncompressed? I would expect that to
> support streaming (though I haven't actually tested).
>
> To store a file uncompressed within the .apk, within Visual Studio, edit
> your Project Properties, and on the Application tab there is a "Leave the
> following resource extensions uncompressed" text input area. Add the
> appropriate file extensions (e.g. ".dat"), and the file will be stored in
> the .apk uncompressed.
>
> Otherwise, try using Android 2.3.3?
>
> > 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.
>
> I wish. Such a mechanism would have allowed install-time extraction of
> assemblies. I only found one such way to do so -- add the files to the .apk
> as lib/armeabi/libFOO.so -- then read them from the $APPDIR/lib directory
> [0].
>
> This was deemed an ugly hack, and was later removed.
>
> - Jon
>
> [0] http://mono-android.net/Releases/Previews/Preview_5
>
> _______________________________________________
> 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/d946fa13/attachment.html
More information about the Monodroid
mailing list