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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:47:42+00:00 2026-05-13T00:47:42+00:00

Is it possible to make an Activity temporarily not rotatable (like, turning it on/off

  • 0

Is it possible to make an Activity temporarily not rotatable (like, turning it on/off in code, not in the manifest)?

One of my old apps crashes if you rotate while it’s doing an HTTP lookup as the views are no longer attached when it returns.

One of these days I’ll fix it proper, but in the mean time it’d be useful if I could just make the thing not-rotatable while it’s doing the lookup.

  • 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-13T00:47:42+00:00Added an answer on May 13, 2026 at 12:47 am

    I believe you can register to be notified of the orientation change events and override Activity.onConfigurationChanged. Register for orientation changes in the manifest with the configChanges attribute.

    Then, of course, you can decide whether or not to rotate and call setRequestedOrientation.

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

Sidebar

Related Questions

Possible Duplicates: Make a wizard like application in Android Pattern one activity, multiple views.
Is it possible to make 2 MapView on one Activity ? If so, How
Is it possible make an activity, that will lock the android device? That device
I would like to try and make a Notification that does not respond to
Is it possible by pressing a button in my Activity to make the volume
please is possible to make some activity with images, text etc. via some .java
Is it possible to make the default TimePicker smaller in the activity xml? I
I am wanting to make a reusable 'landing page' activity similar to like the
Is it possible make some handler that will do something when user shutdown computer
Possible Duplicate: Make error: missing separator I am so stressed out by this silly

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.