What is the easiest change I can make to the new Blank Activity created by the latest version of Android Studio so that the application appears in full screen mode?
I want to create a full screen Android app. I am working with Android Studio.
This post assumes that I am adding a line such as ...
android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen"
... to the AndroidManifest.xml file as shown below:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.lexogram.james.blackslate" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.lexogram.james.blackslate.MainActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
When I do this, the application compiles, but it crashes on startup. If I delete the line, the application works fine, but with an action bar and a title bar, which is also noted by other users.
This is my first attempt to create an Android application, so my application is unlikely to change from the original Hello World example.
EDIT:
. :
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)...
. Samsung SGH-T499Y, Android 2.2 (Froyo)