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?

Reply With Quote

