Android has a nifty feature to disable auto-rotation... Is there some sort of gesture or key combination to rotate your screen? (Say I am in a browser and want to rotate). The idea is to be on auto-rotate = off (mostly desired) and manually change the orientation when needed without exiting the application (preferably).
I use Quick Settings and there's an option to toggle auto-rotate. I have it so the shortcut to Quick Settings lives in my Notification bar so to toggle it requires a swipe, two taps and the back button to toggle it and get back to the app I was in.
If you wanted to reduce this down to
tap home, toggle, tap return if you use QuickDesk which lets you put widgets on it's popup launcher.
I'm sure you could probably set it up as a sortcut in Gesture Launcher but I never had any luck with that app. All it does is force close for me.
Edit: Sorry, misread you question. I don't know of any app that does that and I looked around but came up empty. Personally, that would actually be the ideal behavior of the screen orientation and while I'd have no idea how to make it, it can't be that hard. I'd recommend asking around at the XDA forum. Hopefully someone there may know or maybe one of the devs there will make an app to do it.
I don't know any way to do it by system tools. However, I know couple of apps, which will let you complete this task. You need root access. Here is what I have: Ultimate Rotation Control and GMD GestureControl Lite. GestureControl lets you tight almost anything to any gesture. And URC has an ability to share switches of orientations of screen as "Actions". So you're going to GMD and make new gesture and tie it to "Action" — any desired orientation from URC.
P.S. You need root to use GMD because, AFAIK Android has no another way to set system-wide gestures.
Since you've said toggling auto is fine, you can just use the quick settings pull-down in Jelly Bean and later. Hold the phone in the orientation you want, then pull down the settings tray, and turn auto-rotate back on. When it's rotated, turn it off again right away.
You can even use it on phones that don't have the stock settings tray, if they have a replacement. Samsung phones are an example of this: instead of two trays, they have one notification panel with "quick access settings" at the top. You can configure which settings are shown, and auto rotate is one of the options.
You can use Tap'n'Turn. It shows a small arrow on the screen when it senses that the orientation changes. Pressing it will rotate the screen even when auto-rotation is off.
Instead of rotating the screen right away, it displays an icon which allows you explicitly adjust the orientation
It can also be found on F-Droid (where it is written with spaces: Tap 'n' Turn).
i don't think so, if your autorotation is off only the application which you are running can force the screen to rotate programatically. You can do this with code but only for your application not for others.
One good example is youtube, if you start youtube in portrait mode and even if your autorotate option is disabled, you can click on a button to watch the video on landscape mode.
You can do this with Tasker. Here's a small tutorial
In your profiles screen, click the + button and select application. In the following screen that shows with the list of your installed apps, choose the app that you would wish to turn the Orientation lock to off when opened.
Go back and you will be asked to create a new task. Create one and add the action Display Rotation and set it to on.
Now go back and long press on the task you created and click 'Add exit task' do the same thing as you did before but instead of setting it as on, set it to off.
So now, whenever you open the app that you've chosen (Browser), you can switch to landscape mode and at other times stay locked with whichever orientation you leave the app with.
The question is old but I think there are still people who read these answers and need this feature on their device. This is still not a standard Android function because this is a little bit more complicated issue than it seems. I have an app that does what is requested by OP with a notification menu. And there are more configurations to control your screen. I'm actively developing the app for months. You can review it here.
This works well and is GPL with source code on gitlab: