[android-developers] Re: Select image resource dynamically

2009-12-19 Thread Sergiu Dogaru
you could try using Reflection, but that might be too complicated for what you need. What I would do is to place all of the images in the assets folder, where you can retrieve them by name. I think it's something like Bitmap bmp = BitmapFactory.decodeStream(getResources().getAssets

Re: [android-developers] Re: Select image resource dynamically

2009-12-19 Thread zeugame zeugame
Hello Sergiu, I keep your hint in mind, for now i've generated the mapping class. Maybe not the best way but it is sync with what i have in folder. Regards. Croco On Sat, Dec 19, 2009 at 2:42 PM, Sergiu Dogaru creative.art@gmail.comwrote: you could try using Reflection, but that might

[android-developers] Re: Select image resource dynamically

2009-12-19 Thread croco
Hello Sergiu, I keep your hint in mind, for now i've generated the mapping class. Maybe not the best way but it is sync with what i have in folder. Regards. Croco On Dec 19, 2:42 pm, Sergiu Dogaru creative.art@gmail.com wrote: you could try using Reflection, but that might be too

[android-developers] Re: Select image resource dynamically

2009-12-19 Thread Diego Torres Milano
You can also use something like: int rid = getResources().getIdentifier(fr, drawable, getPackageName ()); not the most efficient way but definitely something you can use. On Dec 19, 6:16 pm, croco zeug...@gmail.com wrote: Hello Sergiu, I keep your hint in mind, for now i've  generated the