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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:20:53+00:00 2026-05-29T05:20:53+00:00

MainActivity and most of the activities of the application use: android:configChanges=orientation android:screenOrientation=portrait to prevent

  • 0

MainActivity and most of the activities of the application use:

android:configChanges="orientation"
android:screenOrientation="portrait"

to prevent screen rotation. But in one of the activities I want it to be able to rotate and althouth it hasn’t the configChanges nor the screenOrientation atributte it can’t rotate.

It’s seems that the configChanges and screenOrientation is inherited from the main activity because if I comment the lines for the main activity then the other activity can be rotated.

Why that behaivour? How can I prevent rotation in some activities and allow it in others?

  • 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-29T05:20:54+00:00Added an answer on May 29, 2026 at 5:20 am

    If you did not set a specific android:screenOrientation value, the default value will be "unspecified" (described as “The default value. The system chooses the orientation. The policy it uses, and therefore the choices made in specific contexts, may differ from device to device.” in the documentation).

    I would suggest setting your special activity to "sensor" and see if that makes a difference.

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

Sidebar

Related Questions

I have an android application where there are 3 activities: MA – MainActivity (Launched
I have this configuration for my application. <application android:label=@string/app_name android:theme=@android:style/Theme.Holo.Light> <activity android:name=.MainActivity android:label=@string/app_name> I
I'm currently trying to adapt my application to use the Compatibility Libraries for Android
I have multiple activities and one service. In MainActivity I successfully connect to service
I was looking at the way Android handles orientation change for my application (I
A simple android Hello World: MainActivity.java: package com.amaker.ch02.app; import android.app.Activity; import android.os.Bundle; import android.widget.TextView;
My Android app should do the following: The MainActivity launches another thread at the
I have this code: MainActivity: public class MainActivity extends ActivityGroup In MainActivity, I use
My current application has one Activity, the main one which extends ListActivity (listview of
I have a main activity (main menu / home screen) Most of my game

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.