If you can't do it any other way you could make each of your activities
into a library module, then create 2 extensions of each - one with
orientation locked in the manifest and the other not.  Now simply choose
which activity to start with your lock orientation setting!
On Jan 2, 2015 9:57 PM, "Nathan" <[email protected]> wrote:

> I wanted to know if it is possible to lock the orientation of an activity
> at runtime.
>
> I know it is possible:
>
>    1. To restrict a particular activity to portrait or landscape by means
>    of the manifest file.
>    2. For the user to restrict all activities to stay in the current
>    orientation by turning of Screen Rotation in their phone or tablet
>    settings.
>
> I wondered if it is possible to allow users to choose "Lock Orientation"
> inside my app, if they so choose, and then act in such a way to enforce it.
>
> If not possible, the next option might be simply to educate users about
> the global setting as an option.
>
> Nathan.
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to