views:

169

answers:

1

Hello All,

I want to lock the orientation programmatically for my application screens to be displayed only in Portrait mode. I use Storm BB device. How to do lock it via my code?

Can someone hint me how to do it?

Thanks.

+1  A: 

You can configure your application to only allow specific orientations by passing in specific direction parameters when invoking UiEngineInstance.setAcceptableDirections(int).

Marc Novakowski
I resolved it. Now i'm able to lock the application screen into portrait mode always. Thanks a lot.