I am working on an app with custom Camera functionality. The Camera is working fine on the Galaxy S3, S4, HTC, Nexus, but on the S5, all of the photos that require flash come out dark. The photo looks fine in the preview, the flash fires, but what is captured by the sensor is always too dark, as if the flash never fired off, or the firing of the flash and the capturing of the image happened at different times. The flash can be either set to auto or to always on, with the same effect. I've tried FOCUS\_MODE\_CONTINUOUS\_PICTURE and FOCUS\_MODE\_AUTO, with the same result. 

Does anyone have any suggestions what else to try?

Thank You,
Gary