直接通过当前activity的布局文件中添加一个button,最外层为帧布局 ,在button的监听事件中用 finish()来从任务栈中移除activity,再用System.exit(0);来退出程序