I hadn't thought too much about that but had briefly considered it.
I'm trying to use these images directly as resources so putting them
in assets would require a fair bit more code to get everything loaded
up into drawables for use as icons as such (at least, best I can tell
it would take more code).

At the moment I'm leaning heavily toward the 'copy over to my res/
directory' option because that gives the benefit of everything working
cleanly in Eclipse as well.

I guess I'll toss this into the pile of feature requests for a future
release: ability to have resources in other directories elsewhere in
the developer's file system.

On Dec 31 2009, 10:52 pm, joebowbeer <joe.bowb...@gmail.com> wrote:
> Have you considered packaging the images as assets using aapt's -A
> modifier?
>
> -A  additional directory in which to find raw asset files
>
> On Dec 30, 11:32 pm, Walt Armour <waltarm...@gmail.com> wrote:
>
> > We will potentially be sharing images between an android app and other
> > apps (gotta keep those costs down).  I am attempting to find a way to
> > have the android app use image files that are outside of its project
> > directory tree (i.e. not in res/drawable).
>
> > At the moment I'm thinking some custom work with aapt (via ant build)
> > is my best shot.
>
> > I will first attempt multiple -S parameters (or multiple values for -
> > S) but I'm not expecting that to work.
>
> > I will then see about two aapt runs.  The first would generate the apk
> > from the non-project directory.  The second would generate from the
> > project directory as normal and include (using -I) the first apk.
>
> > Has anyone attempted something like this before?  Does anyone see any
> > immediate problems with any of these approaches?  I'm thinking there
> > may be some hiccup in the identifier numbering but hopefully that can
> > be handled.
>
> > Worst case scenario I'll just add an ant target to manually copy the
> > external resources over before doing the build.  I am really loathe to
> > do that though.  Accessing the images directly when needed is much
> > safer.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to