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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:43:28+00:00 2026-06-06T20:43:28+00:00

This may sound a newbie question anyway I’m new to Android development. Basically what

  • 0

This may sound a newbie question anyway I’m new to Android development.

Basically what I need to do it to prevent the activity from changing its rotation but meanwhile I need to detect the device orientation change i.e. if device orientation has been changed from top to botton, or from top to left-portrait etc.

in iOS there is an analogue - (BOOL)shouldAutorotateToInterfaceOrientation where you can handle the device orientation change and tell the view if you want it to autorotate or not.
Please pay attention that no any manual data handling of accelerometer data.

So basically I want to detect DEVICE’s orientation change and prevent Activity from rotating.
I’m also playing with data from Sensor to detect shake. But internally Android does some filtration of signals in order to decide when to rotate the UI. So basically I need to catch that event. Anyone can help ?


Simple formulation of my question : I need to detect android device orientation change without playing manually with sensor data, while keeping activity orientation stick to some orientation

  • 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-06T20:43:30+00:00Added an answer on June 6, 2026 at 8:43 pm

    Figure the out the solution.

    http://android-er.blogspot.in/2010/08/orientationeventlistener-detect.html

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

Sidebar

Related Questions

this may sound a newbie question anyway Im new to GCD, I'm creating and
This may sound a newbie question, anyway I'm new to iOS dev, I would
This may sound a newbie question ... but however I'm new to iOS development.
This may sound a newbie question, anyway I'm new to iOS dev. Is it
This may sound a newbie question however I'm new to iOS dev. Are there
This may sound a newbie question, however I'm new t iOS dev. I've a
This may sound a newbie question, however I'm new to iOS dev. I've declared
This may sound a newbie question, however I'm new to iOS dev. Suppose with
This may sound a newbie question, however I'm new to iOS dev. I've a
This may sound a newbie question, however I'm new to iOS. Customer wants to

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.