title: how to disable status bar in android
body: <p>I am working on message app there i want to disable the status bar it should be shown but not touchable.</p>
  
  <p>i have tried  below code:
  In Activity:</p>
  
  <p>StatusBarManager mStatusBarManager = (StatusBarManager) getSystemService(Context.STATUS_BAR_SERVICE);</p>
  
  <p>mStatusBarManager.disable(StatusBarManager.DISABLE_EXPAND);</p>
  
  <p>In Manifest i have also added the permission :
  </p>
  
  <p>But i am getting following error:</p>
  
  <p>Caused by: java.lang.SecurityException: StatusBarManagerService: Neither user 10004 nor current process has android.permission.STATUS_BAR.</p>