finish(); //退出当前activity System.exit(0); //退出整个应用程序 转载于:https://www.cnblogs.com/hao222/p/3542679.html