How to manage orientation lock in android?
- by pixel
I want to create checkbox in my preference Activity that allows user to toggle orientation change.
In similar questions people write only about complete orientation lock (by overriding onConfigurationChanged method or adding configChanges in AndroidManifest.xml) or orientation enforcing ( by setRequestedOrientation ).
Is there a way to toggle orientation lock?