Hi!
I need to use a large number of small images in a project and tried to
create directories under Drawable to put them but don't know how to
open them.
For instance, this doesn't work:

aux="smallimage";
int resID = getResources().getIdentifier("com.my.package:drawable/
icons/"+aux,null,null); // Not OK

But if I put the smallimage file in drawable, it works:
int resID =
getResources().getIdentifier("com.my.package:drawable/"+aux,null,null); //
OK

Also tried to put the images in their own folder under /res but
Eclipse refuses to Run with the error "invalid resource directory
name"

Is this a limitation of the SDK (using a target of 1.5) or am I doing
something wrong?

Thanks in advance!

-- 
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