解决android手机sd卡安装pak后直接打开,按home键异常问题 if ((getIntent().getFlags() & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) != 0) { finish(); return; }