I have developed a custom lockscreen but I will want to make the notification/status bar to don't scroll if my app have a security password.
I found that if I add
@Override
public void onAttachedToWindow() {
super.onAttachedToWindow();
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
}
I can't scroll the status bar, but I have to set a secure system lock. So my question is, could I implement the same things, but without the need of activating a system secure lock?