Is it possible to disable orientation change for a Symbian Web App?
Just a simple little problem. My app only needs to work in portrait mode and landscape looks funky. Is there a way to disable landscap开发者_如何学运维e mode in the app?
Thanks in advance.
There are two ways.
1) In your AppUI's ConstructL(), call:
BaseConstructL(CAknAppUi::EAppOrientationPortrait);
2) At any time, call:
AppUi()->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait);
See also this Forum Nokia article.
精彩评论