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.

inside custom component

Java Development

Reply
Regular Contributor
salmankhan7788
Posts: 52
Registered: ‎02-26-2013
My Device: Curve 9650,Bold 9900
My Carrier: Airtel

How to set BrowserSession orientation in landscape or portrait ..?

I am working on an app in which i need to set portrait orientation position for all my screen. i am done with this .

I do easily set orientation.

my code is:-

int directions = Display.DIRECTION_NORTH;

Ui.getUiEngineInstance().setAcceptableDirections(Display.

DIRECTION_PORTRAIT);

 

net.rim.device.api.ui.UiEngineInstance engineInstance = Ui.getUiEngineInstance();

if (engineInstance != null)

{

engineInstance.setAcceptableDirections(directions);

}

 

but in my app i need to open a url in BrowserSession, this orientation code not work on BrowserSession api, how can i set this Browser pages orientation like my other ui screen, is there any other code to set the BrowserSession orientation in landscape or portrait.

plz guide me...! Any code reference will be helpfull...!

 

Thanks in Advance

Please use plain text.