title: How to lock status bar and notification bar in a specific Activity in my application
body: <p>I am working on a exam related android application. When exam starts i need to lock status bar and notification bar. I used below code but it is only hiding status bar and notification bar.</p>
  
  <pre><code>this.requestWindowFeature(Window.FEATURE_NO_TITLE);
  
          //Remove notification bar
  this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
  </code></pre>
  
  <p>Is any way to lock status bar and notification bar instead of hiding them. For any positive response thanks in advance.</p>