title: android how to hide the status bar without hiding the title bar
body: <p>In my application i  am working with canvas. I am drawing on canvas. I put canvas color as white. When my app open the canvas is visible along with above status bar.
  But i want my canvas should take the full screen. means that Notification status bar should disapear when i run that app bt not the title bar(bcz i m using some custom title bar)
  How can i do that?</p>
  
  <p>By using below code i gave custom title,</p>
  
  <pre><code>requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
  
  getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);
  </code></pre>
  
  <p>Now i am trying to hide status bar using below code in activity-</p>
  
  <pre><code>getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
              WindowManager.LayoutParams.FLAG_FULLSCREEN);
  </code></pre>
  
  <p>and in AndroidManifest.xml</p>
  
  <pre><code>android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
  </code></pre>
  
  <p>But it shows force close.
  Give me a way how to do that?</p>