how update a setBackground with sleep [android]?
===

Well, i want to setting a button with setBackground(), but after this update i want to sleep the thread at 500 ms and after setting another background at the same button, all this inside a onTouch method.
Example

    public boolean onTouch(View v,MotionEvent event){
    switch(event.getAction()){
	case MotionEvent.ACTION_UP:
       button.setBackground(R.drawable.bckg1);
       try{
          Thread.sleep(500);
          button.setBackground(R.drawable.bckg2);
       }catch(Exception e){}
       break;
    }



