title: How to check background image
body: <p>I have a few buttons in my application that can have different background images.
  Now, at the <code>OnClick</code> function, I need to check if the Background Image is the image name "williboese" in drawable. </p>
  
  <p>I tried like this: </p>
  
  <pre><code>    b.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View arg0) {
              //b.setBackgroundColor(R.color.redwue);
              count++;
              if(arg0.getResources().equals(R.drawable.williboese)){
                  Toast.makeText(MainActivity.this, "heeeee", Toast.LENGTH_SHORT).show();
              }
          }
      });
  </code></pre>
  
  <p>I know at this moment that <code>b</code> has this background image but the Toast isn´t shown. What do I make wrong?</p>