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

  • Home
  • SEARCH
  • 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 8383945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:17:43+00:00 2026-06-09T17:17:43+00:00

App works fine in android 3.2 but not in android 3.1 My application is

  • 0

App works fine in android 3.2 but not in android 3.1

My application is in landscape mode and I have manifest saying

 <activity
             android:name=".GameActivity"
             android:screenOrientation="landscape"
             android:configChanges="orientation|keyboardHidden"
       >

and have override the onConfigchanges where i setting it in Landscape Mode.

@Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);

        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

    }

Now the issue is When i run my application in 3.1 there is some wierd problem happening.
When I press home screen ..make it in potrait mode and again come back my app starts activity but shows half screen of my current activity and other activity which isingleTop.

Half screen of my current activity and on top of that old activity

It is weird I do not know why this is happening

  • 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-09T17:17:44+00:00Added an answer on June 9, 2026 at 5:17 pm

    See, documentation about android:configChanges about value screenSize.

    The current available screen size has changed. This represents a
    change in the currently available size, relative to the current aspect
    ratio, so will change when the user switches between landscape and
    portrait. However, if your application targets API level 12 or lower,
    then your activity always handles this configuration change itself
    (this configuration change does not restart your activity, even when
    running on an Android 3.2 or higher device).

    So on android 3.2 setting: android:configChanges="orientation" is effectively ignored since screenSize is leading to recreation of activity. On android 3.1 you prevent recreation of Activity when orientation changes.
    So remove orientation value and it should be Ok, apparently automatic recreation of activity is good for you. Or add screenSize value and be happy that same bug is present in both versions.

    This is kind of funny bug of android that switching between activities with different orientation leads to configuration change of activity which has fixed orientation.

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

Sidebar

Related Questions

I have been creating an app for Android SDK 8 and it works fine.
Have an ASP.net web app which works fine for a few days, but then
I've imlemented in-app billing in my Android application. It works fine on my own
I have android app which works fine. And now I want to add some
I have 1 android app project and 1 widget project, they all work fine.
My app works fine in the simulator but when I run it on my
can someone tell me why my app works fine on samsumg galaxy nexus but
I have an MVC3 C# .Net web app. The app works fine when launching
My app works perfectly fine in the simulator but crashes on the Device. How
In my project whenever I extend activity it works fine but as soon as

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.