android 退出应用后管理程序中force stop 强制关闭为灰色的代码

来源:互联网 发布:网络如何交友 编辑:程序博客网 时间:2024/06/06 02:16
@Overrideprotected void onDestroy() {super.onDestroy();Intent intent = new Intent(Intent.ACTION_MAIN);intent.addCategory(Intent.CATEGORY_HOME);intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);this.startActivity(intent);System.exit(0);}


原创粉丝点击