I am developing an app that uses phone camera to click pictures. On a few phones the camera images captured has square pattern as shown in the picture. I was earlier using the default Camera intent for opening the camera. Now I use the https://github.com/commonsguy/cwac-cam2 library. Also ths problem occurs only in portrait mode and not in landscape.
**strong text**photoFile = Camera.createImageFile(); Intent i=newCameraActivity.IntentBuilder(this) .skipConfirm() .facing(CameraActivity.Facing.BACK) .to(photoFile) .debug() .updateMediaStore() .build(); startActivityForResult(i, RESULT_CLICK_IMAGE);