i am creating a screen lock app. i want to hide the status bar so that user can not see the status bar and open other applications through it. i have successfully hidden the status bar but with you drag from the top of screen it again appears.
i was following the Hide the Status Bar on Android 4.1 and Higher from android developer.
the code was :
View decorView = getWindow().getDecorView();
// Hide the status bar.
int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);
so how do i don't allow the status bar to appear even if you swipe from the top of the screen.