Android里面实现程序的全部退出

来源:互联网 发布:mysql result window 编辑:程序博客网 时间:2024/05/18 03:01
                            Intent startMain = new Intent(Intent.ACTION_MAIN);                            startMain.addCategory(Intent.CATEGORY_HOME);                            startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);                            startActivity(startMain);                            System.exit(0);
原创粉丝点击