title: How to remove title bar using surface view for adding camera overlay in android
body: <p>I followed <a href="http://www.christianpeeters.com/android-tutorials/android-tutorial-cameraview-with-layer/" rel="nofollow">this</a> link to create camera overlay with an image. But my problem is I can't remove the title bar using the following codes in <strong>onCreate()</strong> method:</p>
  
  <pre><code>requestWindowFeature(Window.FEATURE_NO_TITLE);
  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                  WindowManager.LayoutParams.FLAG_FULLSCREEN);
  </code></pre>
  
  <p>It causes probably for the below's code in onCreate method:</p>
  
  <pre><code>getWindow().setFormat(PixelFormat.UNKNOWN);
  </code></pre>
  
  <p>Now, what can I do and why this is happening? Can anybody explain??</p>