Thanks to a clever colleague here who suggested this.
Since sub-activities inherit any android:screenOrientation set on
their launching parent in the manifest, if you lock the parent one
way but want the user to be able to control the orientation of the
child, you need an explicit constant for
Okay, I think I know the answer as to what can cause an activity not to rotate.
Every activity I wanted to rotate was started with
startActivityForResult() (i.e. it was a sub-activity). It appears
sub-activities "inherit" the "android:screenOrientation" of their
parent in the manifest.
In my
2 matches
Mail list logo