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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:38:02+00:00 2026-05-28T05:38:02+00:00

As I understand it, if you insert ‘android:configChanges=orientation’ into the activity in the manifest,

  • 0

As I understand it, if you insert ‘android:configChanges=”orientation”‘ into the activity in the manifest, the activity will not be destroyed and recreated on an orientation change. To test this, I created a dead-simple app which does NOTHING. Then I inserted ‘android:configChanges=”orientation”‘ in the manifest. Then I added the following method:

@Override
public void onConfigurationChanged(Configuration newConfig) {
    Log.v(TAG,"onConfigurationChanged:");
    super.onConfigurationChanged(newConfig);
}

However, I’m still seeing onCreate() being called. The activity is still being recreated.

As if that weren’t strange enough, I don’t see onConfigurationChanged() being called when I put the emulator into landscape mode (Ctrl-F11). It’s only called when I go back to portrait mode. Shouldn’t it be called both ways? Isn’t the configuration (orientation) being changed when I go into landscape as well as portrait modes? This makes no sense.

Anyway, this whole activity and orientation thing is driving me crazy.

  • 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-05-28T05:38:03+00:00Added an answer on May 28, 2026 at 5:38 am

    However, I’m still seeing onCreate() being called. The activity is still being recreated.

    The emulator emulates a device with a side-slider keyboard. The android:configChanges value that matches your – would be keyboardHidden, generally used in conjunction with orientation to handle non-keyboard devices (e.g., android:configChanges="keyboardHidden|orientation").

    That being said, android:configChanges is not recommended in most cases. Use dynamic fragments and setRetainInstance(true), or use onSaveInstanceState() and onRetainNonConfigurationInstance() to allow the activity to be destroyed and recreated.

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

Sidebar

Related Questions

I understand that both of these will insert html into an element. What are
I understand that when we insert values into the STL map, a copy is
I understand that all insert operations will come to commitlog first, and Memtable second,
I understand how to use Ajax.Updater to make requests and insert the results into
Cant understand where is here syntax error? INSERT INTO `playlist_playlistentry` VALUES (playlist_id, media_id, order_by,
I am trying to understand why ZendX_JQuery will not work when used directly in
I understand how I can change the dns settings for my domains by editing
I understand you can add insert blocks of html before and after a target
I understand the basics of pixel tracking, I'm able to insert a pixel that
I was going through this article today. http://vinothbabu.com/2010/05/08/update-and-insert-differences-in-syntax-is-an-inconvenience/ I was not able to understand

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.