Fation Joni Fation Joni - 4 months ago 28
Android Question

can anybody please tell me what is this error in android studio

I have

Android Studio

I am making an app about a simple test that tells the truth. I want to turn the led of the camera on/off. Can anybody tell me where is the error here?


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 Camera apis.

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