Ok. So I cleaned it up a bit.
I don't currently use the Message to the CaptureActivityHandler since the PreviewCallback already has access to the CameraManager and its setTorch() method. Should I still do it the "Message" way? The setTorch() method definitely needs to be altered a bit, as by every change it also copies it into the "Use Front Light" Setting, which in this case should also ideally be deactivated. I will look into that.
The Auto Front Light Algorithm is a bit weird at the moment (I just took the average of a semi-diagonal and compared it to a threshold), but I will try and improve that. Another idea would be to also use the Ambient Light Sensor (I will try and look into that and how complicated it would be)
Do I need to add the strings for the preferencesActivity for every language? What does it do when it does not find the right string for a language?