title: Android: making a fullscreen application
body: <p>What is the simplest change that I can make to a new Blank Activity, as created by the latest version of Android Studio, to get the app to appear fullscreen?</p>
  
  <p>I want to create a fullscreen Android application. I'm working with Android Studio.
  <a href="https://stackoverflow.com/questions/2868047/fullscreen-activity-in-android">This post</a> suggests that I add a line such as ...</p>
  
  <p><code>android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen"</code></p>
  
  <p>... to the AndroidManifest.xml file, as shown below:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
              package="com.lexogram.james.blackslate" &gt;
  
              &lt;application
                      android:allowBackup="true"
                      android:icon="@drawable/ic_launcher"
                      android:label="@string/app_name"
                      android:theme="@style/AppTheme" &gt;
                      &lt;activity
                              android:name="com.lexogram.james.blackslate.MainActivity"
                              android:label="@string/app_name"
                              android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen"&gt;
                              &lt;intent-filter&gt;
                                      &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                                      &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
                              &lt;/intent-filter&gt;
                      &lt;/activity&gt;
              &lt;/application&gt;
  
      &lt;/manifest&gt;
  </code></pre>
  
  <p>When I do this, the app compiles but it crashes on launch. If I remove the line, the app runs fine, but with the action bar and a title bar, as also noted by other users.</p>
  
  <p>This is my first attempt at creating an Android app, so my app is hardly altered from the original Hello World example.</p>
  
  <p>EDIT:
  I created a new project, and made just this one change to it. Here is an extract from the error log:</p>
  
  <pre><code>FATAL EXCEPTION: main
      java.lang.RuntimeException: Unable to start activity ComponentInfo{com.lexogram.james.test/com.lexogram.james.test.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669)...
  </code></pre>
  
  <p>NOTE: I am testing on a old Samsung SGH-T499Y, running Android 2.2 (Froyo)</p>