Orientation problem after the phone is being locked

I have an issue with a game I've been making for Android in Flash. The app orients itself correctly (staying in landscape) up until I lock the phone I'm testing with and then unlock it. When the phone unlocks, the app will then be in portrait mode (it should always be in landscape).
In the descriptor xml file I have set fullscreen to true, aspect ratio to landscape and auto orient to false, but this doesn't seem to affect the app when being locked and unlocked (it works perfectly in any other scenario). It will become portrait again and not move back to landscape when unlocked (so auto orient being false definitely isn't being meddled with).
This issue only triggers when you're running the game and lock the phone and unlock. If for example you were to press the home button so the app is no longer in focus, then lock and unlock and get back into the paused game it will still be in landscape.
I've never had this problem on devices with android 2.3, but after the update to the ICS, I can't find the way to fix it.
Any workarounds?

Sounds like the lock screen is changing your supposedly locked orientation and not setting it back.
With the games I work on we've always left auto-orient on so I've not played with locking the orientation.
You might try setting the orientation when you get your ACTIVATE event like so:
stage.setOrientation(StageOrientation.DEFAULT);
The problem I've found is that devices don't all standardize to default = portrait.
So first, when your app starts in landscape mode, read out the stage.orientation string and save it.
Next you might need to listen for the orientation change event and then try to find a way to force the orientation back.
Something like:
stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, onOrientationChange);
public function onOrientationChange(event:StageOrientationEvent): void {
     isPortraitView = (stage.fullScreenWidth < stage.fullScreenHeight);
     if (isPortraitView) {
          stage.SetOrientation(mySavedOriginalOrientationState);
I hope this helps. Good luck.

Similar Messages

  • I can not use my bluetooth on my 4S to use SIRI when my phone is locked.I have a JABRA Wave. Is SIRI useable after the phone has automatically locked?

    I recently purchased an iPhone 4S. I also recently purchased a Jabra Wave bluetooth. When my phone is unlocked I can use Bluetooth handsfree to invoke SIRI. After the phone automatically locks I can not use SIRI. I can still receive calls. Is this an issue with Jabra Wave, IOS?

    Answered in your other thread on this Topic
    https://discussions.apple.com/message/24487730#24487730

  • I can't unlock my ipod nano 4th generation.  The screen is still working, I can sync to my computer and I can see when it is charging but it stays in the mode of being locked even after I unlock it at the top.

    I can't unlock my ipod nano 4th generation.  The screen is still working, I can sync to my computer and I can see when it is charging but it stays in the mode of being locked even after I unlock it at the top. What could be wrong?

    Hi Saint09,
    Thanks for visiting Apple Support Communities.
    I'd recommend the steps in our iPod troubleshooting assistant:
    http://www.apple.com/support/ipod/five_rs/nano4gen/
    Regards,
    Jeremy

  • I bought my iphone unlocked from carephone warehouse, I had a problem with the phone and apple swapped it over but they locked it to tmobile!!! what can i do?? I have changed contracts and can not use my phone!

    I bought my iphone from carephone warehouse, sim free and with no contract. 5 months down the line I had a problem with the phone and I booked a genius appointment, they swapped my phone and gave me a new phone but they locked my phone to tmobile!!! I now do not use tmobile and I have an iphone which is locked to tmobile!!! I bought an unlocked phone and apple have locked it!!! what can i do?

    In response to this, Carphone Warehouse (and Phones4U) sell what is commonly referred to as "sim free" handsets - these are not the same as unlocked. Sim free handsets will automatically lock to the first network sim card that the phone is activated with, and that will be permanently. The only way to unlock the handset would be to go through the network (T-Mobile I understand) and request they unlock it for you. More than likely, there will be a charge as you are no longer a T-Mobile customer.
    If you ever want to purchase a new unlocked iPhone, the only place you can buy one is from Apple directly. Any other place will most likely sell sim free handsets.

  • It seems after the latest software update, my iphone 4 has issues with the phone and voicemail locking up as well as opening random apps.  Any thoughts?

    It seems after the latest software update, my iphone 4 has issues with the phone and voicemail locking up as well as opening random apps.  Any thoughts?

    Hi clintfromid,
    Thanks for using Apple Support Communities.  I would recommend closing all your apps and restarting and maybe resetting as good initial troubleshooting steps for this:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430
    Cheers,
    - Ari

  • I have upgraded my iphone  to iSO version 6 but the problem is the phone was locked it shows that only compatible SIM cards from a supported carrier may be used to activat Iphone.please insert the SIM card that came with your iphone

    i have upgraded my iphone  to iSO version 6 but the problem is the phone was locked it shows that only compatible SIM cards from a supported carrier may be used to activat Iphone.please insert the SIM card that came with your iphone

    So then do as it says...insert the SIM that came w/the phone.

  • TS1559 my wifi is grayed out... No one can fixed it...there is a problem with hardware. IC problem inside the phone. Apple have any facility like service after sales etc. Multi billion company but no priority for customers ?

    my wifi is grayed out... No one can fixed it...there is a problem with hardware. IC problem inside the phone. Apple have any facility like service after sales etc. Multi billion company but no priority for customers ? Just try to look at google search you can find lot of people who have same problem with iphone 4s. It is surly manufacturing default. Is that apple reputation lounching New virsion Iphone with diffective hardware.

    Plz dont give me idea setting>reset>reset network configration .... I already did it..... give me proper solution... who can replace default hardware from my iphone?????????????????????

  • Skype problem after update problem in the phone language

    Skype problem after update problem in the phone language
    after update to the Windows version the previous month after Skype version update I get this message that came in and tried in every way and the same message so I thought it's a problem in version bskaib and I wait for the update for acne is a problem particular
    to discovered that Skype wouldn't even be open on your browser-and I want to know if there is a way to make to download languages because the language of the United states are available for the device does not support language harbored her mean in the sense
    that I If you want the device English picked united kingdom and the United States version of does not support hardware keyboard language only!

    The Windows Store Development forums are for developers to discuss writing their own Windows Phone apps. For help with using Windows Phone please ask in the Windows Phone forums on
    http://answers.microsoft.com .
    --Rob

  • Problems using the phone when coming back from abroad

    I have a problem with my phone -- I live in Denmark. When I travel abroad, my iphone phone works fine. But then when RETURNING to Denmark, it doesn't work. I cannot call out, cannot receive calls. It has happened several times in the last months. Usually it works again after some hours, or lastly a day or longer. This is really irritating. How to prevent this? How to handle it when it happens?

    If you tried with two different Sim card and still have the problem. I would advice you to simply reset the settings. That way you don't loose your medias.
    a. connect your iPhone to iTunes.
    b. Right click on it when it shows up on iTunes and choose back-up
    c. Right click on it and make sure you transfered all purchase items
    d. Take your iPhone, go on settings, general, reset all settings.
    e. follow the directions
    f. choose restore from back up when it ask you
    g. connect to iTunes
    h. right click on it and choose restore from backup.
    i. choose the back-up you had done earlier
    j. You should be good with your newly restored iPhone
    But honestly... I really doubt that the problem is the phone. You should try with the sim card of another carrier.

  • Application launch failed. Ensure that the device screen is unlocked - after the phone update

    I have the following error "
    Error    1    Application launch failed. Ensure that the device screen is unlocked and device is developer unlocked. For details on developer unlock, visit http://go.microsoft.com/fwlink/?LinkId=195284.         0    0 
    I'm pretty sure it happened after the last update. I was able to use my phone as a dev one before
    and my account shows it as a registered device.
    The OS version is 7.10.8107.79.
    The steps that I tired
    -Registered again my phone with the registration tool
    -Check the issue with Zune auto-launcher (zune isn't syncing and the phone is connected)
    -Close and start everything again
    Other possible issues
    - Do I have to have sdk 7.1 to deploy?
    - Do I have to wait 24h for registration?

    You should be using SDK 7.1 anyway, so install that.
    After the update, the phone may have locked itself.  This may not be reflected in your AppHub account though.  Using the Developer Registration Tool, register the device, unregister it, then register it again.

  • I have a problem in the phone Nokia X3-02

    Hello, how are you
    I have a problem in the phone Nokia X3-02
    Which is related to Wi-Fi
    When you search for networks
    Tell me
    There are no networks available
    Note that I tested in the laptop and worked

    Hi Abdrhmanxd, 
    Welcome to Nokia discussions board! 
    In order to fix the issue, please perform a soft reset: type *#7780# on the keypad. The default lock code is 12345. If issue persists, please perform a hard reset. First of all back up your data using Nokia Suite. Then type *#7370# on the keypad. 
    Please search for Wi-Fi networks again. 
    Let us know how you get on and feel free to post any other questions you may have. 
    Regards, 
    astra2025
    Press the 'Accept Solution' icon if I have solved your problem, Kudos my post if my advice has helped you!

  • Hi every time I go to write a tx on my iPhone it asks for my apple I'd sign in like when I buy an app or something and you have to enter your password is there a way to stop it doing this or is there some kind of problem with the phone

    Hi every time I go to write a tx my phone asked for my sign in details like I have just bought something like an app of song ect I just press cancel and it goes away but still pretty annoying is there a way to stop this or is there a problem with the phone  ? Thanks

    If the login box keeps popping up either your acct is disabled or you are mistyping your pw.  
    Go here and try out your pw and reset if necessary:
    http://appleid.apple.com/
    Click on Manage ID and go from there.

  • Is there a way to answer Voip calls such as Bria while the phone is in locked mode?

    We are using Voip Apps such as Bria and Avaya OneX portal with Voip client enabled for SIP extensions back to Avaya IP Office, the issue is that Apple will not allow the answer splash screen to pop up while the phone is in locked mode..
    On a smartphone you can lock the screen (for security reasons) and to unlock you need to enter a pin or password to get access to the phone.  On a native cellular call the ability to answer the call is provided on the lock screen so that the user does NOT have to unlock the phone to answer the call.  What this customer/partner is complaining about is with our VoIP portion of the application when an incoming call comes in and your phone is locked you cannot answer the call until you unlock the phone.    The issue is that Apple does NOT let application developers bypass the phones locked screen.  Call it security or whatever you want this is something that don’t make available.  Like I mentioned other VoIP applications like Counterpath suffer from the same Operating System limitation.
    So a couple things:
    1.       This is not a Bug it’s an operating system limitation.
    2.       If this is that key for a user the only options are to turn off the lock screen or switch to Android (which does allow this).
    Totally agree with the customers complaint there just isn’t much we can do. We can try to complain to Apple again however that is not going to yield anything.
    Is there any way to get around this?
    Thanks,
    Kelvin

    I'm going to give up on Apple if they don't change this soon. It worked before, answered like a regular phone call (slide to answer). But since IOS7 i really dont like my Iphone anymore. Looking around for alternatives.

  • My iPod Touch 3rd Gen is having problems with the touch screen being unresponsive, too responsive, freezing and constantly resizing. Is this a common problem? Is there a fix?

    My iPod Touch (3rd Gen) is having problems with the touch screen being unresponsive, too responsive, freezing and constantly resizing. It varies between not responding when I tap the screen and acting as if I double-tap or tap and hold when I tap. Every so often it freezes for a minute or so and then comes back. The scren is constantly changing sizes too such that I often can't see most of the top status bar or other edges. This makes typing almost impossible, ruins most games and generally makes everything difficult, but otherwise the iPod is working correctly. Powering off, shutting down apps, letting it sit have not worked. This has happened once before months ago, but the issue resolved itself somehow. Is this a common problem? Is there a fix?

    Try this for the freezing
    http://www.apple.com/support/ipodtouch/assistant/ipodtouch/
    Or if they don't work put it into recovery mode
    See here
    http://www.apple.com/support/ipodtouch/assistant/restore/
    Then restore
    http://support.apple.com/kb/HT1414

  • I had bought iphone 4 from singapore and now i am relocated to india.....there is some hardware problem in the phone due to which i m nt able to use it.....how do i give the phone for repair and in which country?

    i had bought iphone 4 from singapore and now i am relocated to india.....there is some hardware problem in the phone due to which i m nt able to use it.....how do i give the phone for repair and in which country?

    The warranty is not international and only available in the Country of purchase .If the iPhone is out of warranty  Apple or their Agents will also only give service in the country of original purchase.
    So if you want Apple help you will have to return it to Singapore or find a 3rd party to repair it if they can in India  as long as it is out of warranty and you understand that Apple would never help with that device in future if it has been opened by a 3rd party

Maybe you are looking for