0

How do I hide the android 4.0 mini pc combined bar or Status bar programatically?

I am using the below code, but it is not working.

protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);

  requestWindowFeature(Window.FEATURE_NO_TITLE);
  this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
}

2 Answers2

0

just set android:theme="@android:style/Theme.NoTitleBar.Fullscreen" attribute on your activity in the manifest file. Sometimes programmatic window manipulations can get messy. Try this out.

Anup Cowkur
  • 20,443
  • 6
  • 51
  • 84
0

Go to settings->Display->hide status bar tick that to hide