I am encoding a custom Activity class (using it as a superclass for other activity classes) where it overrides many of the default functionality. One of these features that I want is orientation, and although I can do it, it requires
android:configChanges="orientation"
in the manifest. Is there a way to apply the same thing as the line above, but in java code?
source
share