Just after changes in main.xml application run fines on my computer. Try one more time Copy the whole code as you had given in you first post and make changes only in EditText and Button as I told earlier application will definitely run.
Joined: Sep 02, 2010
after weeken，this programe have normal work！
so thank you，i don‘t know by my poor english to how to discrible my thanks, luck to you!