I have some problems with N96 + CCamera + Autofocus.
As mentioned here:
N96 doesn't support New2L like other S60 3rd FP2 devices so we have to use NewL to get camera working. Now CCamera has two NewL functions
I'd like to use NewL with MCameraObserver2, it constructs OK, but when I try start camera with StartViewFinderBitmapsL() my app crashes with KERN-EXEC 3.
static IMPORT_C CCamera *NewL(MCameraObserver &aObserver, TInt aCameraIndex);
static IMPORT_C CCamera *NewL(MCameraObserver2 &aObserver, TInt aCameraIndex, TInt aPriority);
If I use NewL with MCameraObserver everything goes fine and I can construct CCameraAdvancedSettings to get autofocus support, but autofocus cannot call HandleEvent from MCameraObserver2.
So my question is how to support autofocus in N96?