Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User SamoylovBoris's Avatar
    Join Date
    May 2006
    Posts
    22
    Hi all. I need help. My view-based application uses CAknAppUiBase::SetOrientationL for switching application UI to landscape and back to portrait mode during work. But if I write UI initilaization like this:
    void CMyAppUi::ConstructL()
    {
    BaseConstructL( EAknEnableSkin );
    SetOrientationL( EAppUiOrientationLandscape ); // KERN-EXEC 3 error
    // ....
    }
    method SetOrientationL causes KERN-EXEC 3 error. If I change orientation later (while CAknView activation for example) error doesn't happen, but on N73 (S60 3rd ed) softkeys buttons drawn as two white rectangles.
    If I initialize application UI like this:
    BaseConstructL( EAknEnableSkin | EAppOrientationLandscape );
    SetOrientationL( EAppUiOrientationLandscape ) works fine, but I can't change orientation to portrait.
    What is wrong?

  2. #2
    Regular Contributor viktor_m's Avatar
    Join Date
    Mar 2003
    Posts
    104
    No problem at least with E61, E70 and N80.
    I didn't use views though, but container, MyAppUi was derived from CAknAppUi.

    Code:
    void CMyAppUi::ConstructL()
    {
        BaseConstructL(EAknEnableSkin);
    
        SetOrientationL(EAppUiOrientationLandscape);
    // ...
    }
    br

  3. #3
    Registered User SamoylovBoris's Avatar
    Join Date
    May 2006
    Posts
    22
    Thank you for reply. I tested application on N80 and N93. It works fine. Error occurs on N73.

  4. #4
    Registered User SamoylovBoris's Avatar
    Join Date
    May 2006
    Posts
    22
    It was my error. I wrote
    Code:
    void CBCRAppUi::HandleResourceChangeL( TInt type )
    {
    	CEikAppUi::HandleResourceChangeL( type );
    	// ...
    }
    instead
    Code:
    void CBCRAppUi::HandleResourceChangeL( TInt type )
    {
    	CAknViewAppUi::HandleResourceChangeL( type );
    	// ...
    }

  5. #5
    Regular Contributor er_benji's Avatar
    Join Date
    Feb 2006
    Posts
    217
    Hi,

    I am trying to change the orientation of my app in the emulator but it doesn't work. Does the emulator support this feature?

    Thanks in advance.

  6. #6
    Regular Contributor dathom's Avatar
    Join Date
    Feb 2004
    Posts
    58
    No, emulator does not

Similar Threads

  1. How to change application icon displayed on the menu (urgent)?
    By okegame in forum Symbian Tools & SDKs
    Replies: 9
    Last Post: 2010-01-16, 14:14
  2. Can we change font for total application
    By Sharmilasrjasthi in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-06-30, 07:20
  3. Changing the ordinal position of an exteranl application.
    By Shaikuny in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-12-30, 07:32
  4. Replies: 0
    Last Post: 2004-12-13, 11:05
  5. Change Application name
    By binubabykurian in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-10-29, 07:10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved