Question

In these project screen orientation landscape view wasn't working at all.

In android manifest I did android:screen orientation=lanscape or doesn't use screen orientation in that.You can check it in manifest.But unfortunately I doesn't get a output.

Manifest:

<?xml version="1.0" encoding="utf-8"?>

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

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="19" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" android:name="com.sit.gems.app.GemsApplication"
        android:theme="@style/AppTheme" >

        <activity
            android:name="com.sit.gems.activity.SplashActivity"

            android:label="@string/app_name"  >
                 <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity android:name="com.sit.gems.activity.HomeActivity"></activity>
        <activity android:name="com.sit.gems.activity.YoutubePlayActivity"></activity>

    </application>

</manifest>

I doesn't get a landscape view. Anybody know how to solve these.Thank you.

Était-ce utile?

La solution

If you are using emulator,then some of the emulator with targets version Android 4.4 and 2.3 have a bug see here. Just try to change your emulator to target version 4.2 or 4.3 and then change the orientation.

Happy Coding :)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top