2011年10月31日 星期一

Some Notes about Android AndroidManifest.xml

Android Light Theme
Add in AndroidManifest.xml
        <activity android:name=".MathCal"
                  android:label="@string/app_name"
                  android:screenOrientation="portrait"
                  android:theme="@android:style/Theme.Light">
            <intent-filter>

Android Screen Orientation
<activity android:name=".MathCal"
              android:label="@string/app_name"
              android:screenOrientation="landscape"
              >
android:screenOrientation=["unspecified" | "user" | "behind" | "landscape" | "portrait" | "sensor" | "nosensor"]

Enabling the Android Move To SD Card Feature
Edit the AndroidManifest.xml file of the application to add an entry for “android:installLocation” to the <manifest> tag:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" ......... android:installLocation="auto">
Keep the “minSdkVersion” the same as before; it need not be 8 to match Android 2.2

Android APPS without Title / Fullscreen
If you want your Anddroid APPS without tilte, change androidmanifest.xml  Theme
android:theme="@android:style/Theme.NoTitleBar"
If you want your Android APPS without tilte and fullscreen, change androidmanifest.xml Theme
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

沒有留言:

張貼留言