I have an imageview in android . I want to get the name of the image which is set in the in the imageview. How can I do that ?
ImageView v = (ImageView)find
Couldn´t you use something like this?
ImageView v = (ImageView)findViewbyId(R.id.img); if(R.id.someId == v.getId()) { //do something } else{ //do something }
It´s easier than use resources' names.