I have an app that runs in landscape mode. It’s supposed to always be in landscape mode, but if I start it on my Kindle Fire HD holding it vertically, the app will briefly try to display in portrait mode. This causes much grief. This brief portrait behavior doesn’t happen on my phone or on the Kindle fire HD emulator.
Is there a way to prevent this from happening?
My manifest file has:
<activity
android:name=".SplashScreen"
android:screenOrientation="landscape"
android:noHistory="true"
android:configChanges="keyboardHidden|orientation|screenSize"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:label="@string/app_name"
android:screenOrientation="landscape"
android:configChanges="keyboardHidden|orientation|screenSize"
android:name=".MyActivity">
</activity>
Is there more I need to do?
Answering my own question, my only solution I can find is to use a workaround:
From my experience, every time the kindle fires up my ‘landscape’ app with a width smaller than the height (thus, by definition, not really giving me a landscape view), I just ignore the surface and wait, it quickly gives me a a real landscape (flipping the height and width so that its a true landscape view).