Hi,
I'm testing Camera on Android and I found some issues using MAUI.
1) maCameraFormatNumber gets the number of possible sizes, but there's no way to retrieve each format resolution.
2) maCameraFormat sets a new resolution. Why index must be >=0 and < maCameraFormatNumber since it simply adds width/height to userWidths and userHeights? In fact, there's no relation between format and those Arrays.
3) Android requires a valid resolution, so you call mPreview.getOptimalSize. Ok, what's the size? I need 1280x1024 jpeg pictures, so i'm planning to use RAW + resize + my own encoder. That's why I need pic size.
4) maCameraStart tests if mMoSyncCameraController.hasView(). If I call maCameraStop and maCameraStart again, preview is not shown. Is there a workaround?
Btw, maCameraStart calls mMoSyncCameraController.setPreview using cameraPreview. maCameraStops calls maWidgetDestroy(cameraScreen). hasView() is probably wrong isn't it?
5) Testing on Xperia X10 w/ GB 2.3.3, I get the curious scenario:
maCameraStart();
maCameraFormat index 0 to 640x480 (which is not valid);
maCameraSnaphhot w/ index 0;
it returns a 1920x1024 picture;
maCameraClose();
maCameraStart() (no preview, check item #4);
maCameraFormat index 0 to 640x480 (which is not valid);
maCameraSnaphhot w/ index 0;
it returns a 640x480 picture;
maCameraClose();
Regards,
Diego