Reputation: 259
How to lock orientation in blackberry OS 4.5
In blackberry OS above 5.0 it possible on following method
ScreenUtils.disableOrientationChange();
// enters the event processing loop thread if required
if (!app.isHandlingEvents())
{
app.enterEventDispatcher();
}
And
Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_PORTRAIT);
But I am working on BB OS 4.5 so How it's possible.
Upvotes: 0
Views: 240
Reputation:
The first touchscreen device (BlackBerry Storm) came with RIM OS 4.7.
And setAcceptableDirections method was introduced in RIM SDK 4.7.
RIM SDK 4.5 does not provide control over the screen orientation.
Upvotes: 3