1

I am trying to hide the status bar. I have tried the following things.

android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > 

In the Manifest.XML I have added the above code.

And in the onCreate() I have added the following:

requestWindowFeature(Window.FEATURE_NO_TITLE); // hide statusbar of Android // could also be done later getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 

But still I am unable to hide the status bar. Can anyone help?

1
  • 1
    which device you are using ? 4.0 + (Tablet)? Commented Dec 14, 2012 at 14:29

2 Answers 2

2

The approaches you've taken would work on 2.3.X

But if you are talking about 4.0 tablets this is the code

LinearLayout layout = (LinearLayout)findViewById(R.id.layout); layout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); 

If you're talking about a tablet you cannot get rid of the system bar but I suggest you look at this question:

Hide Status bar on Android Ice Cream Sandwich

Sign up to request clarification or add additional context in comments.

Comments

0

Just make sure that you are writing above code lines before the line setContentView()?

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.