This source code show you how to turn on-off flash light along with Screen brightness adjustment.