Hello,

I'm newbie and I'm developing an application for a carnival that will
list activities with their image. I want to put the carnivals image
for every activity in the app package to avoid that user has to
download it and  in the database I will have the name of every image
for every activity.

Then I will use the next code to convert from filename image  from
database to resource ID
    Class res = R.drawable.class;
    Field field = res.getField("drawableName");
    int drawableId = field.getInt(null);

This is a good way to do what I want that the package contains
activities Image, or for example is better on the first run copy the
images on the sd card an the get the images from there. Any
suggestions?

Thanks

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