title: problem with using button.setPressed(false); in android java code
body: <p>I want to disable the button press on a 2nd click, so I have this code for the action handler of the button in my android code :</p>
  
  <pre><code>      // do something when the button is clicked
  
         public void onClick(View v) {
  
          final Button button = (Button)findViewById(R.id.radio_red);
  
          if(button.isPressed()==true &amp;&amp; rt1==true ) 
  
          {
  
              button.setPressed(false);
  
              button.clearFocus();
  
              //rt1=false;
  
                      //do some processing !     
  
          }
  
          else rt1=true;
  
      }'
  </code></pre>
  
  <p>However, button.setPressed(false);   doesnt work as expected. :(</p>
  
  <p>Can anyone please help me out ?</p>