Rajkiran
Rajkiran

Reputation: 259

How to lock the screen orientation for blckberry OS 4.5 Application

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

Answers (1)

user784540
user784540

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

Related Questions