finish(); //退出当前activity
System.exit(0); //退出整个应用程序
android程序退出当前activity的方法
原文:http://www.cnblogs.com/hao222/p/3542679.html