Hi Jeffrey

      I previously sent you a reply with this line that you place in the 
manifest.  

android:screenOrientation="portrait"      


I had only just found it and while trying to find out whether you can change 
the orientation  by code while the program is running, I found some tips that 
didn't work ,but after playing around with them I have got these two lines to 
work in the main body of code.  

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); 

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);



You will have to import  as follows

import android.content.pm.ActivityInfo;



It is really annoying that we have to search so much for such basic information 
as this.



Good luck with your app



Mike

  ----- Original Message ----- 
  From: Jeffrey Blattman 
  To: [email protected] 
  Sent: Wednesday, September 02, 2009 2:30 PM
  Subject: [android-beginners] force orientation change?


  wondering if there is a way to force the screen orientation one way or the 
other ... regardless of the phone's actual orientation.

  thanks.


  -- 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

<<inline: qr-gmail.png>>

Reply via email to