Have a code that displays a random image:
Random rand = new Random();
int rndId = rand.nextInt(24) + 1;
imgName = "drw" + rndInt;
int id = getResources().getIdentifier(imgName, "drawable", getPackageName());
imageView.setImageResource(id);
How is it possible to implement read the image name by clicking on it in the program and create a new window with a description of the image that is unique to each.
Yes, you can get the Image Name if you have its resource id by using
getResourceEntryName(resource_id),OUTPUT: