Possible Duplicate:
Android, getting resource ID from string?
String res = "R.drawable.image1";
I need to get it's INT id. Please help me!
Possible Duplicate:
Android, getting resource ID from string?
String res = "R.drawable.image1";
I need to get it's INT id. Please help me!
If you want to get the
integer
then simply remove the quotes.That will give you the number.
Use this to get resource id: