09-21-2009 01:06 AM
09-21-2009 01:47 AM
You have to launch you application first before you call the code to lock the orientation or it will lock whatever is displayed before your application launches. You should be able to call this code in the contructor of your app, possibly even in the constructor of your global screen. Are you trying to lock your global screen in a certain orientation or do you just want to keep it from rotating?
Hmm Ihaven't had sucess with it yet =/
I'm trying to lock my global screen in portrait and also keep it from rotating.
09-21-2009 11:01 PM
Hey CMY have you tested it using a global screen or only as a menu item?
I just ask because I'm still struggling with this. It seems to have a mind of it's own and I can consistantly get it to lock. I have it setup for the following
Once the phone's backlight turns on I have it sleep for 2 seconds then I run the code and launch the global screen. This doesn't have any affect on the screen though.
I've also tried running the code in the global screen's constructor and it had no affect. It works perfectly as a menu item though.
10-03-2009 07:47 PM