About TCameraInfo and size issue, I have written the code below to get the sizes that secondary camera supports and use the smallest size, but it again gives the same "Feature not supported" error.
Since I can get "jpeg" images by the phone's default camera application from the secondary camera, I think I can use the format "EFormatExif" for the secondary camera also.
The size of the image got from the default application is 320x240.
CCamera::TFormat format = CCamera::EFormatExif ;
TInt sizeCount = aInfo.iNumImageSizesSupported;
TInt imageSizeIndex = 1 ;
// all non-zero sizes returned are supported for the format specified
for (TInt i=0; i < sizeCount; i++)
iCamera->EnumerateCaptureSizes(size[i], i, format);
imageSizeIndex = sizeCount - 1 ;
TRAPD(err, iCamera->PrepareImageCaptureL(format, imageSizeIndex ));
I have found following for the primary camera,
But I don't know about the secondary camera. Any idea?
Format / Resolution (index) 2592x1944 (0), 2048x1536 (1), 1600x1200 (2), 1024x768 (3), 640x480 (4)
EFormatExif (JPEG) 0, 1, 2, 3, 4
EFormatFbsBitmapColor4K - - - 3, 4
EFormatFbsBitmapColor64K - - - 3, 4
EFormatFbsBitmapColor16M - - - 3, 4