How can i access an Adroid drawable by a variable?
Example
I have drawables :[ logo1.png logo2.png … logoN.png];
Is there a way so i can do that?
String logopicker="1";
logo.setImageResource(R.drawable.**logo+logopicker**);
Well i know this code will never run but you get the idea of what i want to do.
Thank you
This code is running for me successful (I have already used in my one of the application),
You can Try this:
Enjoy !!