Android 2.2 SDK - setParameters failed for Camera API on Nexus One

后端 未结 1 1759
傲寒
傲寒 2020-12-17 06:12

I am using a slightly modified version of the Camera API Demo and it works in the emulator. I am using a reflect class I found in one of the mailing groups, but I still get

相关标签:
1条回答
  • 2020-12-17 06:58

    Invalid preview size requested: 320x402

    You can't use arbitrary preview sizes. You'll need to use Camera.Parameters.getSupportedPreviewSizes() and Camera.Parameters.getSupportedPictureSizes() to find the closest preview and picture size to your desired size.

    0 讨论(0)
提交回复
热议问题