03-08-2011 05:58 PM
Is it possible to lock the orientation whilst also listening to the orientation events? If anyone has a link to some sample code that would be much appreciated. I'm trying to control a movieclip by rotation of the device but keeping the app locked in a fixed landscape position (like on iOS you have landscape with home button facing down and landscape up...and you can stop it's default behaviour of reorientating between the two)
Testing orientation change in the simulator is proving quite tricky as the current method to rotate it also triggers the simulator to bring the apps menu (You get a thumbnail of the minimized app). This would make what I'm trying to do useless... so my other question is does anyone know if this is actual behaviour of the device or a bug in the simulator?
Solved! Go to Solution.
03-08-2011 06:19 PM
While orientation change videos are few and far between (and not very informative) we can only assume that what we see in the simulator is a bug, and not the actual behaviour of the device.
I know that even with autoOrient set to false, apps will still rotate by using the method you stated above. I would perhaps wait until a more stable sdk or actual device is in your hands to really test this. I know this isn't an ideal solution, but Mark has hinted a new SDK is on it's way (I'm hoping this week, but no one knows.)
03-09-2011 12:19 PM
Personally, I would submit even if some issues were minor. RIM is aware that the simulator is buggy, you just need to make sure that in theory, all you code will work on a physical device. They've said before that apps won't get rejected due to simulator issues. Worst case scenario, they could give you some feedback on what issues they are experiencing on a device and it might help you fix them (even if the feedback is extremely vague)
03-09-2011 12:38 PM - edited 03-09-2011 12:52 PM
The approval/turnaround time is completely random,
however they have stated that if your app is submitted before the deadline and rejected due to bugs you will get an opportunity to fix them and re submit, even if the deadline has past.
Hmm, it appears I may have misinterpretted what Mark said. You must submit before the deadline to qualify, even if your approval happens after it. Nothing was mentioned about a chance to resubmit after the deadline though.
03-09-2011 01:41 PM
Just so no one comes after me with pitchforks please read my edited post above
03-16-2011 11:44 AM
Okay, I just want to make sure that this is the bug that people are reporting. My descriptor has aspectRatio set to portrait and autoOrients set to false. And the simulator does correctly reorient itself when you launch the game. And it looks like this on simulator 0.9.4.
And the orientation is indeed locked. If I swipe from the corner, nothing happens. Which is what I want. This is a game that's intended to run in portrait mode only.
But if I minimize the game and then swipe from the corner to rotate the main menu screen.
I can now maximize the game with an unwanted (and very ugly) orientation change.
Am I safe in assuming that you won't be able to force an orientation change like this in the shipping version?
03-16-2011 01:39 PM