Custom camera preview appears 75% black on Sony Xperia P device with Android version 2.3.5. The same piece of code gives proper camera preview on all other devices like Samsung Galaxy Series devices, HTC, Motorola, LG, Google Nexus, Micromax with Android versions 2.2 and greater. Following is the link of code that may have to be altered to fix this issue.
[url removed, login to view] (please provide your [url removed, login to view] username to get access to the source code)
Also attached is the video showing the problem.
You need to make a clean [url removed, login to view] pull request once you have fixed this problem.