I am developing a app on S60 3rd platform one of whose capability is taking pictures.
When I test my app on Nokia 3250, the viewfinder launched successfully. But when I rotate the screen, the ui of camera of the system opens. But I have reserved the camera for app so the system camera function should "NOT" be opened.

However I have two ideas to solve this problem.
First, remove the source code relating to camera in my app and when user want to take a picture, my app will call Nokia 3250 default camera UI.

Second, keep the souce code relating to camera in my app but when user
rotate the screen, my app can catch this event and do something to prevent the default camera UI form launching.

Could anyone please suggest me which way is feasible and how to do or
any better idea or any good reference to solve this problem?

Thanks in advance.