Cocoa Dev
Cocoa Dev

Reputation: 9541

Android doesn't rotate automatically

I created an alternate layout in Eclipse

res/layout-land/main.xml

I am using Hello Android 3rd Edition to learn Android.

Am I missing anything?

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.oneorangetree.sudoku"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="15"
        android:targetSdkVersion="15" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".Sodoku"
            android:label="@string/title_activity_main" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".About"
            android:label="@string/about_title"
            android:theme="@android:style/Theme.Dialog">            
        </activity>
    </application>

</manifest>

Upvotes: 0

Views: 673

Answers (2)

Rushabh
Rushabh

Reputation: 385

You can use Ctrl + F12.

See the possible options here CLICK HERE

Upvotes: 0

ixx
ixx

Reputation: 32273

There's a setting "auto-rotate" in setting "display" on the device. Check that it's activated.

Upvotes: 1

Related Questions