Hi,

Can anyone help me. I'm trying to write an application for the Nokia N80 and would like it to start up in landscape mode if the external app calling it was in landscape mode.

I noticed that if you are in the video recorder on the N80 is in landscape mode. If you then Go To Gallery from this, the gallery opens in landscape mode aswell.

I want to be able to do this with my app. I've tried using:
HandleResourceChangeL in my AppUI but this doesnt seem to be called on startup with KEikDynamicLayoutSwitch. The only way I can start up my application in landscape mode is by forcing it to landscape mode by using:

SetOrientationL(CAknViewAppUi::EAppUiOrientationLandscape)

but this is to just always open up in landscape mode. I need it to only open up in landscape mode, if the application calling it was in landscape mode.

Does anyone know, how I should do this?

Thanks,
Nasima