Skip to main content

prevent landscape mode

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
stern23
Offline
Joined: 2010-10-29

Hello,
I'm using latest Lwuit from SVN
is it possible in blackberry torch 9800 to run some forms just in one mode? (portrait for instance)
I still need some screen to be able to flip but in one screen I need it just in portrait mode.

thank you

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

I'm not sure if it will work to change this dynamically but you can try:
net.rim.device.api.ui.UiEngineInstance ue;
ue = net.rim.device.api.ui.Ui.getUiEngineInstance();
ue.setAcceptableDirections(net.rim.device.api.system.Display.DIRECTION_PORTRAIT);