Reputation: 1
i want to hide status bar in tablet ics in my application When i include this code. `
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
then the app crashed,
Is there any way to disable the status bar.. Or please give me a suggestion for hiding home button press
Do anyone have an idea in this topic,please help me tackling this problem
Upvotes: 0
Views: 825
Reputation: 12717
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(...);
Upvotes: 1
Reputation: 5236
First of all, share us your code. But I think the reason is that you put this line after setContentView(..)
and you need to put it before
Upvotes: 0