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 9043295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:42:13+00:00 2026-06-16T10:42:13+00:00

I am building an app with Android 2.3.3 API. I need to recognize the

  • 0

I am building an app with Android 2.3.3 API. I need to recognize the change in orientation and perform some action. So I added the following in Android Manifest,

android:configChanges="orientation|keyboardHidden

And I override the method

public void onConfigurationChanged(Configuration newConfig)

It works perfect on Android 2.3.3. But when I install the same app (built with 2.3.3 API) on a 4.1.2, onConfigurationChanged() is not invoked. I searched online for solution and people suggest to add the following in android manifest.

 android:configChanges="orientation|keyboardHidden|screenSize"

If I build the app with above statement and built with 4.1.2 API, It works perfect on 4.1.2 device. But I cannot install it on 2.3.3. 2.3.3 API doesn’t have “screenSize” option. So to support both, what should I do?

Thanks, Karthik

  • 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-16T10:42:14+00:00Added an answer on June 16, 2026 at 10:42 am

    Hi Look at mine AndroidManifest.xml

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example"
    android:versionCode="1"
    android:versionName="1.0" >
    
    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="10" 
        android:maxSdkVersion="16"/>
    
    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity 
            android:name=".ConfigrationTask"
            android:configChanges="orientation|keyboardHidden"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
    
        </activity>
    </application>
    

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

Sidebar

Related Questions

I am building an Android app using phoneGap and I have successfully added the
I'm building an Android app and I need to have two different themes for
I'm building a mobile app for Android with JQM and PhoneGap. I need to
I was looking into building an android app that utilizes the Spotify API but
I am building an Android app in which client is selling some mp3 files.
Building an app using android.support.v4.app , targeting API level 8. Everything's working as planned
Problem: I am building Android app in Eclipse which uses shared lib libgstreamer-0.10.so (GStreamer-android
I am building an android app, and I want to be able to have
I'm building an Android app with OpenGL.I created 2 squares, each with their own
I'm building a fairly simple Android app (sdk revision 14: ICS) which allows users

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.