Taken from:

http://developer.android.com/training/basics/firstapp/starting-activity.html#RespondToButton
Pressing the button hangs the application :)