how to lock perticular screen orientation in Blackberry storm 2 - landscape

in my application there are around 7 to 8 screen and i want to do that particular 2 or 3 screen orientation change and other remain still in Portrait View.
i have implemented this `int direction = Display.DIRECTION_NORTH;
Ui.getUiEngineInstance().setAcceptableDirections(direction);`
it working fine at first time application start but when setAcceptableDirections method call and set orientation for particular screen that orientation set for all screen in this application . i cant change orientation for particular screen
so is it possible to change pariticular screen orientation in blackberry ?
please help me if any one have any idea .

Related

Xcode 6 custom launch screen

I am trying to make a custom launch screen based Xcode 6 new feature following the content given here. I don't understand how can I manage orientation of launch screen on iPad. My launch screen contains a horizontal rectangular image in the centre. Using size classes I can set different constraints and views for iPhone in landscape or portrait mode. But unable to do the same for iPad. Also how can I lock the orientation of Launch screen when creating a launch screen using the above method ?
You can not do this for the iPad because both orientations fall under the regular width and regular height size class.

Orientation on ios 8

I have 6 tabs in my iPad application, all of the controllers have a single baseViewController. In my first tab there is a collection view and different layouts for landscape and portrait mode. When I launch the application and rotate for the first time, all tabs' controllers are loaded simultaneously. Every time I rotate the device it calls orientation methods for all controllers. Before iOS 8 everything was working fine but this issue occurs only in iOS 8.
Can anyone suggest a solution?

Screen gets cut and hangs for few seconds upon rotation

My windows 8 store xaml app gets cut in half upon rotation from landscape mode to Portrait mode and vice versa. Upon rotation the screen gets hanged for a second and gets cut. After a pause of around 3 seconds it gets adjusted to portrait mode. To get the app adjust in portrait mode i have written a storyboard that resizes the buttons and other columns.Then we are calling this storyboard or viewstate on size changed event. We have noticed that many Microsoft apps like mail, people, news apps has the same behaviour. Is there any way to fix this? Or does all the apps on Surface take time to re-adjust? Any reason for this? How can I fix it? Please check the screen shot taken at the time of rotation..

IOS reorganize graphics on rotation

I'm making an iPad application with 19 buttons which are alle graphics. They are aligned next to and underneath eatchother, like in a grid. In portrait mode they are displayed nicely (because that's how I've set them) but I don't know what settings I need to choose for landscape mode.
When the device turns to landscape I've got room for 4 columns in stead of 3 in portrait for instance.
How can I make the app automatically adjust they layout of the buttons when rotated?
Thanks
In iOS5.1 or older, you will need to do this in code. In iOS6, its possible you can use a UICollectionView - not sure haven't played with it.

How to avoid iPad 2 video mirroring?

I'm not sure if this is a bug with my code or UIKit, but I can't seem to get my app to consistently output the second UIWindow instance to the attached screen. I've read everything at http://developer.apple.com/library/ios/#qa/qa1738/_index.html#//apple_ref/doc/uid/DTS40010848 and my code matches the pattern, but there is one instance in particular where it gets "stuck" mirroring and won't display the correct window on the second screen -- it displays only the mirror of the iPad's screen.
This is on iOS 4.3.5 on a GSM iPad 2.
Scenario 1 - iPad 2 is plugged into the screen from the springboard. It is mirrored. Launching the app results in the correct behavior of showing one UIWindow on the iPad 2 and the other on the external screen.
Scenario 2 - App is launched not plugged into screen. Plugging in the screen results in the correct behavior.
Scenario 3 - App is open and displaying correct behavior on screen. Unplugging from the screen, waiting a few seconds, and then re-plugging in the screen results in the screen becoming a mirror. The code that assigns the UIWindow to that screen is run, but the readonly mirrored property of it already is true.
Scenario 4 - App is plugged into the screen and is resumed from the springboard. The external screen displays correctly.
Any ideas?