I want to do application which will not change UI even if screen is changed to portrait or landscape direction. How to do that?
you can use this code to set the orientation to portrait. After that even if the device is held in landscape, the orientation wont change.
Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_PORTRAIT);