title: Reading button's background image
body: <p>I'm trying to read a button's background image, this is what i'm trying:</p>
  
  <pre><code>  ImageView btn_java1 = (ImageView)findViewById(R.id.background);
    int draw = R.drawable.ic_launcher;
  
  
      btn1.setOnClickListener(new OnClickListener() {
          public void onClick(View var1) {
  
          if (btn_java1.getBackground().equals(draw)){
              a.setVisibility(View.VISIBLE);
          }
          else{
              a.setVisibility(View.INVISIBLE);
          }
  
          }
      });
  </code></pre>
  
  <p>But it's not working and I can't see the problem</p>