blackberry screen orientation change
-
30-01-2021 - |
Domanda
i want to set my application in Portrait mode as default . so how to implement it ? all screen of the application set default as Portrait mode ..
Soluzione
Check this BlackBerry UI guide:
Specifying the orientation and direction of the screen
Altri suggerimenti
This set default portrait mode:
public void disableOrientationChange()
{
int directions = Display.DIRECTION_NORTH;
UiEngineInstance engineInstance = Ui.getUiEngineInstance();
if (engineInstance != null)
{
engineInstance.setAcceptableDirections(directions);
}
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow