How to Hide Status Bar Android Java

To hide the status bar, go to the activity’s java file and enter the following code in the Oncreate method

 

Java Android code to hide status bar

 

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                     WindowManager.LayoutParams.FLAG_FULLSCREEN);

 




, ,

Post navigation

Leave a Reply

Your email address will not be published. Required fields are marked *