I am stuck in a situation. I have some set of 10 images in drawable folder. During my code I have just the image name. for e.g "elephant.png" and I want the byte array of the image( drawable ) corressponding to image name.
String imageName = getResources().getResourceEntryName(GroupIconAdapter.mThumbIds[position]);
From here I get the image name and I want byte array.
Is is possible?
Thanks