Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
BlackBerry Development Advisor
smcveigh
Posts: 668
Registered: ‎11-29-2011
My Device: developer

Re: Issue with screen rotation on bb10

care to post your initialization code?

Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: Issue with screen rotation on bb10

Just tested old simple code https://github.com/blackberry/Core-Native-Community-Samples/tree/master/NativeAndOpenGLWindows on Z10 and I can confirm the issue. If you start from NDK everything is good (starts in landscape) but if you then tap it on your device it starts portrait.

Contributor
vidueirof
Posts: 25
Registered: ‎04-08-2011
My Device: Torch 9800

Re: Issue with screen rotation on bb10

Ok. We're having this issue with another game.
But we found a workaround, we use screen_set_window_property_iv() with SCREEN_PROPERTY_SIZE property and hardcode the size in landscape. (1280x768).

For us worked on the first game, but in the other we can't do this because we're using a prebuild framework.