- how update a setBackground with sleep [android]?
- 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;
- }