title: Creating full screen activity in android for all android versions starting from gingerbread
body: <p>I need to create an android app containing an webview in my activity. The webview activity has to shown in full screen without showing the title bar. So I have given like this in my manifest:</p>
  
  <pre><code> android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
  </code></pre>
  
  <p>also in my mainactivity.class. I have given like this before the setcontentview:</p>
  
  <pre><code>requestWindowFeature(Window.FEATURE_NO_TITLE);
  getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
  </code></pre>
  
  <p>Also in my main activity I have given like this:</p>
  
  <pre><code>android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
  </code></pre>
  
  <p>Now I want this app to be developed for all versions of android starting from 2.3 Gingerbread. Now the problem comes. When I run this on 2.3.6 Gingerbread, the app works fine in full screen. Where as when I try to run it on version 4.3 Jelly Bean, the app force closes. What is the problem behind this? How to make this app support on all versions of android? </p>
  
  <p>I have searched many times in stackoverflow, but did't find a solution to my problem. That's why I ask it as a question. Any help from anyone is easily appreciated...</p>
  
  <p>Thanks in advance</p>