Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9059927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:05:37+00:00 2026-06-16T15:05:37+00:00

I have an app that runs in landscape mode. It’s supposed to always be

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:05:39+00:00Added an answer on June 16, 2026 at 3:05 pm

    Answering my own question, my only solution I can find is to use a workaround:

    public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
        synchronized (holder) {
            Log.view("Surface changed event: width = " + width + ", height = " + height);
            if (width < height) {
                Log.view("HEY THIS IS NOT LANDSCAPE!!!!");
                return;
            }
            // do stuff
        }
    }
    

    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).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have an app that runs perfectly on android 1.6+, but admob ads are
I have a web app that runs fine in Visual web developer. But when
I have an app that runs on iPad and iPhone running iOS 3.2, but
I have an app that runs slowly on an iPhone 3G but is fast
I have an app that runs for a while, but needs to be reset
i have developed an app that runs perfectly fine on the simulator but when
I have a complex App that runs reliably, but I'm puzzled why I need
I have a C# Web app that runs perfectly fine in VS2010, but when
I have an app that runs a stored procedure in SQL Server, checking the
I have an app that runs a webview as a service so the audio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.