I'm coding a custom Activity class (using it as a super class for my other Activity classes) where it's overriding many default functionalities. One of these functionalities I want is orientation handling, and while I can do it, it requires
android:configChanges="orientation"
in the manifest. Is there a way to enforce the same thing as the line above, but in java code?