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
Developer
packiaraj
Posts: 221
Registered: 07-09-2009

Screen orientation problem

Hi guys,

 Am working for an application in which i want to perform orientation for some of the screens.
 For one screen i want to display both portrait and landscape orientation, and for another screen i want to display the content in Landscape orientation.
 I used the following code for both portrait & landscape screen
 
  int directions = Display.DIRECTION_PORTRAIT | Display.DIRECTION_LANDSCAPE;
  Ui.getUiEngineInstance().setAcceptableDirections(directions);
 
 And then for portrait screen i used this codes before pushing the screen
 
  int directions = Display.DIRECTION_PORTRAIT ;
  Ui.getUiEngineInstance().setAcceptableDirections(directions);
 it's not affect the portrait screen when pushed from Previous Screen(portrait & landscape screen)
 
 Can any one please help me for this problem?

 Thanks
 Packiaraj

Please use plain text.
Developer
peter_strange
Posts: 14,614
Registered: 07-14-2008

Re: Screen orientation problem

Please use plain text.