The CameraWapper example does not work with the nokia C5.
After some experimentation I have found the problem and a crude work-around.
Looking at the CameraEngine src https://projects.developer.nokia.com...4381424ddd62ba
you will see on line 338 iAdvSettings->SetFocusMode( defaultAFMode );
This line results in the EErrAutoFocusMode event being generated. On line 353 the call to MceoCameraReady() is made...Code:320 void CCameraEnginePrivate::PowerOnComplete( TInt aError ) 321 { 322 iCameraReserved = (aError == KErrNone) ? ETrue : EFalse; 323 324 if( !iCameraReserved ) 325 { 326 iObserver->MceoHandleError(EErrPowerOn, aError); 327 return; 328 } 329 330 // Init AF 331 #if !defined(__WINS__) 332 if( iAdvSettings ) 333 { 334 CCamera::CCameraAdvancedSettings::TFocusMode defaultAFMode = 335 CCamera::CCameraAdvancedSettings::EFocusModeAuto; 336 if( iAdvSettings->SupportedFocusModes() & defaultAFMode ) 337 { 338 iAdvSettings->SetFocusMode( defaultAFMode ); 339 } 340 } 341 else if( iAutoFocus ) 342 { 343 TRAPD( afErr, iAutoFocus->InitL( *this ) ); 344 if( afErr ) 345 { 346 delete iAutoFocus; 347 iAutoFocus = 0; 348 } 349 } 350 #endif 351 352 iEngineState = EEngineIdle; 353 iObserver->MceoCameraReady(); 354 }
My work around is to move all the code from MceoCameraReady() into the EErrAutoFocusMode handler. The C5 can then take photo's.



