Removing the notification bar in an Android app

I am developing a restaurant menu application in which I want to always be on (the user should not go outside the application).

For now, I can override the Back and Home buttons, but I would like to get rid of the notification bar. Is there any way to do this?

I tried to set the application theme to full screen without a title, but that did not help. (For the home button, I used a custom application in application.xml.)

Here is a picture of the application for a better understanding. screenshot of my app

+5
source share
2 answers

( - , ) .

, : , : http://ppareit.github.com/HideBar/ ( , URL-)

+1

onCreate()

this.requestWindowFeature(Window.FEATURE_NO_TITLE); // Removing the title 

this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
//notification bar

setContentView (R.id.x),

0

All Articles