This is not an error, but a warning "Deprecated Class", this mean
Camera class can be removed(not supported) from future versions of Android.
Follow this link for new
According to the Java Documentation:
Deprecated Class >> A program element annotated @Deprecated is one that programmers are discouraged from using, typically because it is dangerous, or because a better alternative exists.
To turn on FlashLight read this >> Check and turn flashLight ON