title: Get the name of the image resource used in image button
body: <p>I'm new to Android programming and I want to know that how can I get the name of the  image resource that is currently set on the image button.
  eg :  b1.setImageResource(R.drawable.img);
  //where b1 is the image button and img is the name of the png file present in res/drawable.</p>
  
  <p>Now I would like to know how would I get the name of the image file i.e "img".
  Thanks in advance.</p>