Android activity, how to override android manifest: configChanges with Java code?

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?

+5
source share
2 answers

XML, Java; . : http://c0deattack.wordpress.com/2010/12/25/dealing-with-screen-orientation-changes-manually/

: configChanges . , , . XML, . API , configChanges.

+2

"android: configChanges" onConfigurationChanged Activity, Activity.receate() .

0

All Articles