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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:35:32+00:00 2026-05-22T01:35:32+00:00

I want to write an app to turn auto-rotation on and off automatically depending

  • 0

I want to write an app to turn auto-rotation on and off automatically depending on which application has focus. I currently have an auto-rotation toggle button on the screen for this purpose (I hate autorotation, but find it useful for a small handful of apps), but I often forget to activite it when starting a relevant app, or to deactivate when I’m done with that app (not to mention it is a pain to have to manually toggle it). I haven’t been able to figure out how to receive a notification when the focused application changes, which I would need to receive to automate the toggle. Is there any way for to be notified whenever the focus changes?

-Harry

  • 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-22T01:35:33+00:00Added an answer on May 22, 2026 at 1:35 am

    This sounds exceedingly difficult. Your background service would be continually polling to see who’s active, and would likely get killed without your knowledge when android needed more memory.. which would be even more frustrating.

    Perhaps it would be easier to bind a simple app that toggles the feature to, for instance, a long-touch of the search button.. that way you wouldn’t have to back out to main to toggle it and then go back.

    Might be a simpler way.

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

Sidebar

Related Questions

I'm across winforms currently but want to write an app that users will have
I want to write an application that monitors a music player. In my app
I want to write an app that will allow a program like iTunes which
In my case I want to write an app which is totally symetrical (not
So I want to be able to write an app that can turn on
I want to write a app in which I open the camera take a
I want to write an app which launches android market. (The activity should only
I basically want to write an app that uses the Drive API. developers.google.com has
I want to let the users of my app, which is in turn an
Possible Duplicate: Android HttpClient and HTTPS I want to write app on Android which

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.