title: Android button comparing
body: <p>I've got very very basic problem in Java (Android) writing. Here it is, I've got code:</p>
  
  <pre><code>public void WriteValue (View sender){
     Button bt=(Button)sender;
  }
  </code></pre>
  
  <p>WriteValue is performed, when user click button. And now I want to compare button which user clicks, with button that Id I know. Something like</p>
  
  <pre><code> if(UserButton==ClearButton) Display.setText("0");
  </code></pre>
  
  <p>Thanks for help
  Tux:)</p>