Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Highlighted
Contributor
Posts: 11
Registered: ‎05-03-2011
My Device: Blackberry 9800
My Carrier: GSM

Blackberry Strom - How to unblock the screen orientation??????

Hi,

 

 

      How to release the blocked orientation.I have blocked the screen orientation while we press Custom Menu as it was giving some screenshot issues.But i need to unblock the orientation soon the menu gets disappear.How to do that...

 i have written

 

  if (Display.getOrientation() == Display.ORIENTATION_PORTRAIT) {
            Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_PORTRAIT);

        } else if (Display.getOrientation() == Display.ORIENTATION_LANDSCAPE) {
            Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_LANDSCAPE);
        }

 

for blocking the screen

 

HELP