I need to get orientation of camera application when camera application is open. Basically i want to show a CAknListQueryDialog from a background ui application which is continuously running in background to bring in foreground when some media is captured from background. Currently i am able to show the dialog when some media is captured from background but not able to display dialog in the correct orientation. Note: camera orientation is different from device orientation i.e camera may support landscape and portrait mode but device only supports portrait mode than if media is captured from outward camera then camera application is in landscape mode but device is in portrait mode so i need to to the dialog from my application in landscape mode if camera application is in landscape else show in portrait mode. Is their any api available to find out the orientation of camera application so that i could display the prompt according to that orientation or an api to find out orientation of any other application from my application when any other application is in foreground and my application is in background or an api to find out the camera being currently used by camera application or find out view being used through which we can find out the orientation or any other simple method.