-3

Possible Duplicate:
How to hide status bar in Android

enter image description here

How can I remove this statusbar in android 3.1.

Thanks.

Community
  • 1
  • 1
Narendra
  • 1,868
  • 6
  • 25
  • 39
  • [Here is your Problem ][1] [1]: http://stackoverflow.com/questions/5431365/how-to-hide-status-bar-in-android – Jack Long Mar 26 '12 at 07:40

2 Answers2

6

You can't. That's not the status bar, that's the new system bar, and you can't remove it because unlike the status bar it has key navigation affordances (back and home keys).

The only things you can do with it are as described for View.setSystemUiVisibility(). Note that on tablets you can not assume SYSTEM_UI_FLAG_HIDE_NAVIGATION will be respected; this is mainly intended for display video, so if the screen's aspect ratio allows a wide screen video to be shown without removing the navigation, then it will not be removed.

hackbod
  • 90,665
  • 16
  • 140
  • 154
0

This code will remove the notification bar and title bar programmatically (tested using Android 2.3.3).

Unfortunatly this code does not work for Android 3.0 and above.

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

//Remove title bar 
this.requestWindowFeature(Window.FEATURE_NO_TITLE); 
Mark Gittoes
  • 131
  • 3