开发者

BlackBerry:How to lock the screen orientation for Storm?

I want to lock the orientation programmatically for my application screens to be displaye开发者_开发技巧d 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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜