Question about Forcing landscape mode ???

Anything about development not directly related to libgdx, e.g. OpenGL, Android APIs etc.

Re: Question about Forcing landscape mode ???

Postby shatterblast » Fri Jan 17, 2020 9:34 pm

You want something like the following in your AndroidManifest.xml file for your Android module.
Code: Select all
        <activity
            android:name="com.weslange.AndroidLauncher"
            android:label="@string/app_name"
            android:screenOrientation="landscape"
            android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenSize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
shatterblast
 
Posts: 653
Joined: Sun Jul 06, 2014 1:14 pm

Return to General Development

Who is online

Users browsing this forum: No registered users and 1 guest