Question: I have a button. I want to simulate a click on. `performClick()` does most of the job, but it doesn't do the button's animation. I tried `setPressed` and `setEnabled` as well, but no dice.

Answer: 
Call invalidate after the setPressed to force the view to redraw:

```
btn.setPressed(true);
btn.invalidate();

```
Try to use tool [Monkey](http://developer.android.com/guide/developing/tools/monkey.html).