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
Regular Contributor
gopi
Posts: 78
Registered: 10-15-2010
My Carrier: Not specified

Issue in Landscape & Portrait orientation

Hi To Everyone

    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)
    
    Please help me for this.

    Thanks & Regards
    Gopi

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

Re: Issue in Landscape & Portrait orientation

You are not related to Packiaraj are you?

http://supportforums.blackberry.com/t5/Java-Development/Screen-orientation-problem/td-p/839223

 

Just once please

Please use plain text.