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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
kknautiyal
Posts: 14
Registered: ‎06-14-2011
My Carrier: airtel

App orientation issue

Hello,

 

In my app, I've fixed the app orientation to portrait mode. Its working fine but some of OS 7 and OS 6 devices display app orientation in landscape mode automatically.  Please suggest, how to fix this issue.

 

 

Thanks

Kewal

Please use plain text.
Developer
shaan_softwaredvlpr
Posts: 172
Registered: ‎01-17-2011
My Carrier: Airtel

Re: App orientation issue

Please provide code, 

By Which we can find where are you going Wrong.

 

This code is used to restrict app in portrait mode

 

Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_PORTRAIT);

 

 

Please use plain text.
Developer
pradeep_ch
Posts: 540
Registered: ‎12-23-2010
My Carrier: Airtel

Re: App orientation issue

Use this,

 

Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_NORTH);

 

 

Thanks.

Please use plain text.