title: How to compare two drawable images in android
body: <p>I want to compare drawable image with menu item icon. </p>
  
  <p><strong>For example I want to like this</strong></p>
  
  <pre><code>if(item.getIcon().equals(getDrawable(R.drawable.image))){
       ... 
  
  }
  </code></pre>
  
  <p>but it doesn't work in android studio. How can I compare two drawable images?</p>