Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide status bar permanently in android? [closed]

How to hide status bar (phone icon,battery icon, network icon etc.) in android?

like image 260
user3168129 Avatar asked Feb 12 '23 02:02

user3168129


1 Answers

Write this code just above setContentView(R.id.activity_main) and it will work.

requestWindowFeature(Window.FEATURE_NO_TITLE);     
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
like image 73
Nithin Avatar answered Feb 15 '23 11:02

Nithin