Intent startMain = new Intent(Intent.ACTION_MAIN);
startMain.addCategory(Intent.CATEGORY_HOME);
startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(startMain);
System.exit(0);
Android2.2中关闭所有界面,彻底退出的方法
最新推荐文章于 2022-07-01 17:01:15 发布