I have a toggle button in my application. I want to change or control default setting, Auto rotate screen(Settings>Display>Auto rotate screen) programmatically. Does anybody
You set default rotation settings in your manifest file e.g:
To change orientation programatically you have to call Activity.setRequestedOrientation()