System: LC android4.4
In the camera before and after the video, found that there will be a flower screen, but not necessarily, may occur after a reboot will appear, and will be in the necessary state, unless again restart.
Baidu has a lot of solutions, what by setting camera.unlock, and so on, are unable to solve, after the continuous attempt, the solution is as follows:
To set the preview resolution:
Camera.parameters Parameters = Camera.getparameters ();
Parameters.setpreviewsize (width, height);
Note: Here the width, height is set to unsupported values will crash. You can get a list of the resolutions that your camera supports by: parameters.getsupportedpreviewsizes (), and then see which resolution doesn't cause the screen.
Similarly, when recording the screen, also set the video resolution:
Mideorecord.setvideosize (width, height)
The above is a small set for you to introduce the Android 4.4 camera preview, video screen problem solving method, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!