Skip to content Skip to sidebar Skip to footer

Field Of Camera Preview Is Smaller If I Use The Way Of Preview In Grifika's Continuouscaptureactivity

We know that we will get a lager field of preview at the same distance when camera preview ratio set to 4:3 instead of 16:9, the detail is as follows: Android Camera API - Weird zo

Solution 1:

After a struggle, I finally found out the exact reason, it is the API Camera.Parameters.setRecordingHint(true)

When I removed this clause in my source code, the field of preview became normal.

In one word, the API Camera.Parameters.setRecordingHint(true) is a bug in some android devices.

For some devices, if preview ratio is set to 4:3(use API Camera.Parameters.setPreviewSize(int, int)), calling API setRecordingHint(true) will cause the field of camera preview to be smaller.

Post a Comment for "Field Of Camera Preview Is Smaller If I Use The Way Of Preview In Grifika's Continuouscaptureactivity"