// 应用程序位于堆栈的顶层
Log.v(“Log”, tasksInfo.get(0).topActivity.getClassName());
if (!className.equals(tasksInfo.get(0).topActivity.getClassName())) {
Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
isSetting = drawKey == null || “”.equals(drawKey);
intent.putExtra(“isSetting”, isSetting);
intent.setClass(getApplicationContext(), GestureLockAty.class);
startActivity(intent);}
}
注意添加权限:
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/228336.html原文链接:https://javaforall.net
