我想将我的应用程序设置为纵向模式作为默认设置。那么如何实现呢? 应用程序集的所有屏幕默认为纵向模式..
答案 0 :(得分:1)
查看此BlackBerry UI指南:
Specifying the orientation and direction of the screen
答案 1 :(得分:0)
此设置默认纵向模式:
public void disableOrientationChange()
{
int directions = Display.DIRECTION_NORTH;
UiEngineInstance engineInstance = Ui.getUiEngineInstance();
if (engineInstance != null)
{
engineInstance.setAcceptableDirections(directions);
}
}