This question already has an answer here:
- Hide Notification bar 8 answers
I have an android application which lists installed applications and launch them on item click.I want to disable accessing NotificationBar from my application.ie,When user launch 'Browser' application from my application,it is possible to drag down the notification bar and he/she can change settings of gps,wifi etc...I tried this
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
But it works only for my activity.How to disable Notification Bar for my whole application?
Thanks in Advance
You could us a theme in your AndroidManifest.xml:
This will hide the title bar
See my code below. I applied the code you specified in your question and my notification bar is hidden. You won't be able to disable the notification bar for external browser applications
Set a theme on the Application in your XML: