If I get the image name as a variable like following:
var imageName = SERVICE.getImg();
Then, how can I get the resource with R.drawable.????, I tried R.drawable[imageName], but it failed. Any suggestions?
If I get the image name as a variable like following:
var imageName = SERVICE.getImg();
Then, how can I get the resource with R.drawable.????, I tried R.drawable[imageName], but it failed. Any suggestions?