Hi Diane, thanks for the reply

Could I have a little clarification please? On app startup would the
resources and assets be loaded into memory or only when they are
used?  Something like this seems to be happening to my app. Since I
added the files I had on the sdcard to the assets folder the app takes
much longer to load on initial startup. If this is the case I think
copying the files to the sdcard on first run might be the way to go
(but much more work for monday ;) )

Thanks
Simon

On Aug 28, 3:06 am, Dianne Hackborn <[email protected]> wrote:
> Assets and resources are basically the same thing.  They are all entries in
> your zip files, resources have an associated table so you can retrieve the
> file by resource identifier (which may select amongst different files based
> on the configuration), while assets are just retrieved with a raw path in
> the zip.
>
> On Thu, Aug 27, 2009 at 4:35 PM, longhairedsi
> <[email protected]>wrote:
>
>
>
> > Hi
>
> > I have many ogg files in my app(around 1mb worth). Currently I'm
> > loading them from my sdcard from a folder that i manualy coppied
> > across. For distribution of my app where should i put the oggs? I
> > tried adding them as resources(R.) but it seemed to make my app take
> > an age to load, would this happen? Is assets the way to go? if so has
> > anyone got an example of loading an oog from assets? i can't get it to
> > work..
>
> > Cheers
> > Si
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to