2

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");
                    }
balaji koduri
  • 1,321
  • 9
  • 25
Joterito
  • 153
  • 2
  • 15

1 Answers1

1

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);
Don Chakkappan
  • 7,397
  • 5
  • 44
  • 59
  • I have tested this solution but it is still possible to show status bar pulling down in the top of the screen. I need the user cannot show any bar. – Joterito Nov 19 '14 at 11:20
  • [link](http://stackoverflow.com/questions/19920052/disable-the-notification-panel-from-being-pulled-down) These are ths codes i have tested but the user can still drag down status bar. The only thing i have got is collapse notifications panel when it is opened. – Joterito Nov 19 '14 at 11:55