Use CameraUtils.getLargestPictureSize for problematic devices.