int igotit = getResources().getIdentifier(val, "drawable", getPackageName());
i got resourceid from that how to display imagename?
use this :
String imageName = getResources().getResourceName(R.id.img);
refer doc . there is also the method : getResourceEntryName(int)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With