http://developer.android.com/training/basics/firstapp/starting-activity.html
I did the test example, but I need to read it again. http://developer.android.com/training/basics/firstapp/starting-activity.html#RespondToButton