Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2008

    Forceing Portrait Mode on n97


    I'm developing an application that MUST work only in portrait mode. This means that when changing orientation manually (for example, opening the n97 QWERTY keyboard) the application has to stay in portrait (by default, it changes to landscape).

    I tried setting the AppUi's BaseConstructL flags to force the application to be only Portrait but nothing happens. When opening the QWERTY keyboard, the application keeps changing to landscape:
    BaseConstructL( EAknEnableSkin | EAppOrientationPortrait );
    Secondly, I tried to change the screen orientation when the first screen (splash) is shown (in the DoActivateL function):
    But nothing is solved. Even if n97 is in landscape mode when I execute the application, it still keeps the landscape mode.

    I have tried many other applications and no-one keeps the portrait mode when opening the keyboard. Only the system camera keeps the same orientation when opening/closing the keyboard. For that, I guess it’s possible to do it but I cannot find out.

    Any help would be appreciate. Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: Forceing Portrait Mode on n97

    You can still try the old-school method: check for KEikDynamicLayoutVariantSwitch in HandleResourceChange/L, and switch back to portrait orientation.

Similar Threads

  1. Stop Switching from Portrait to Landscape mode
    By Ashish Gupta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2009-06-30, 10:04
  2. Replies: 0
    Last Post: 2008-11-07, 21:18
  3. Screen Mode from portrait to landscape
    By rami75lu in forum Symbian User Interface
    Replies: 0
    Last Post: 2008-10-15, 04:57
  4. How to force application always to stay in portrait mode?
    By wojciech.debowski in forum Symbian
    Replies: 4
    Last Post: 2008-05-16, 08:35
  5. switching back to portrait mode column list box not displayed..
    By Rajani_sp in forum Symbian User Interface
    Replies: 0
    Last Post: 2007-12-06, 10:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts