×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    22

    Can't change application UI orientation

    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
    Join Date
    Mar 2003
    Posts
    104

    Re: Can't change application UI orientation

    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
    Join Date
    May 2006
    Posts
    22

    Re: Can't change application UI orientation

    Thank you for reply. I tested application on N80 and N93. It works fine. Error occurs on N73.

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    22

    Re: Can't change application UI orientation

    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
    Join Date
    Feb 2006
    Posts
    217

    Re: Can't change application UI orientation

    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
    Join Date
    Feb 2004
    Posts
    58

    Re: Can't change application UI orientation

    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
  •  
×