Monday, April 18, 2011

Android Screen Orientation

Change /your Acreen Orientation to your Code in  Androidmanifest.xml,
if you want partrait and Landscape then select both

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.statepermit" android:versionCode="1" android:versionName="1.0">
    <application android:icon="@drawable/stateheader" android:label="@string/app_name">
        <activity android:name=".statepermit" android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar" android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
       
    </application>
    <uses-sdk android:minSdkVersion="7" />

</manifest>

2 comments:

  1. Thans for this man! Now my app is locked to landscape mode. :) http://www.codeofaninja.com/

    ReplyDelete