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
Developer
Posts: 253
Registered: ‎08-14-2010
My Device: Not Specified

force orientation 9800 when keyboard is open

Hi,

 

I am using belofw code to force to portrait.


But this does not wotk with 9800 torch when keyboard is phiscally open.

 

Any solution?

 

Cheers

 

int directions =  net.rim.device.api.system.Display.DIRECTION_PORTRAIT;

	 net.rim.device.api.ui.Ui.getUiEngineInstance().setAcceptableDirections(directions);