Hi,
I am developing an application something like rotate me( as its not made public, want to write my own n make it public :) ). I want to know how to get handle to the native screen(UI).. I want to switch the screen orientation while my applications runs in background?? in view class what should i change??

void CAppContainer::ConstructL(const TRect& aRect)
{
CreateWindowL();
SetRect(aRect);
ActivateL();
}

//My app ui construtL goes like this
void CAccAppUi::ConstructL()
{
BaseConstructL(EAknEnableSkin);
CEikonEnv::Static()->SetSystem( ETrue );
// set application priority to foreground priority even if it goes to background
CEikonEnv::Static()->WsSession().ComputeMode( RWsSession::EPriorityControlDisabled );
iAppContainer = new (ELeave) CAccAppContainer;
//iAppContainer = CAccAppContainer::NewL( ClientRect() );
iAppContainer->SetMopParent( this );
iAppContainer->ConstructL( ClientRect() );
}