Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
android.os.Process.killProcess(android.os.Process.myPid());
Android实现退出应用
猜你喜欢
转载自blog.csdn.net/qq_43278826/article/details/88655643
今日推荐
周排行