Greetings,

any idea how could I avoid my application not crash if I launch camera application when shutter isn't opened? Whole phone seize up right now if shutter hasn't been opened? Im using Nokia N73 music edition. Do we have any interface in Symbian API which would tell if shutter is opened?


My code is here:
Code:
// Bring camera foreground
TApaTaskList aList(CEikonEnv::Static()->WsSession());
TUid id( TUid::Uid( EExternalCameraView ) );
				
TApaTask task = aList.FindApp(id);

if(task.Exists())
{
	task.BringToForeground();
}	

// Start device camera application in image mode
iMainView->ChangeExternalViewL(EExternalCameraView, 1);

Code:
void CAppMainView::ChangeExternalViewL(TInt aAppUiView, TInt aViewUid)
{
	AppUi()->ActivateViewL(TVwsViewId(TUid::Uid(aAppUiView), TUid::Uid(aViewUid)));
}
Thanks,
Arachidyl