Re: [android-developers] Lock Orientation at runtime

2015-01-03 Thread TreKing
On Fri, Jan 2, 2015 at 8:56 PM, Nathan nathan.d.mel...@gmail.com wrote:

 I wanted to know if it is possible to lock the orientation of an activity
 at runtime.


http://stackoverflow.com/questions/2366706/how-to-lock-orientation-during-runtime

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Lock Orientation at runtime

2015-01-03 Thread Nathan
That is what I was looking for. Thanks. 

On Saturday, January 3, 2015 10:13:20 AM UTC-8, TreKing wrote:


 On Fri, Jan 2, 2015 at 8:56 PM, Nathan nathan@gmail.com javascript:
  wrote:

 I wanted to know if it is possible to lock the orientation of an activity 
 at runtime.  



 http://stackoverflow.com/questions/2366706/how-to-lock-orientation-during-runtime


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices
  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Lock Orientation at runtime

2015-01-02 Thread Nathan
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Lock Orientation at runtime

2015-01-02 Thread Steve Gabrilowitz
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 nathan.d.mel...@gmail.com 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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 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 android-developers+unsubscr...@googlegroups.com.
 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.