Reputation: 151
I'm developing an full screen application
but it's possible for the user to pull down the status bar, and after, access to wifi, bluetooth... features. I have watched some applications that have a complete full screen and don't allow pull down the status bar. The only aproximation is collapse it but this solution allow the user to access all these features. This is the aproximation that isn't is valid for me:
if (Build.VERSION.SDK_INT > 16) {
collapseStatusBar = statusBarManager
.getMethod("collapsePanels");
} else {
collapseStatusBar = statusBarManager
.getMethod("collapse");
}
Upvotes: 2
Views: 1787
Reputation: 7560
Check it
this.requestWindowFeature(Window.FEATURE_NO_TITLE); // Remove title bar
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);// Remove notification bar
setContentView(R.layout.activity_home);
Upvotes: 1