-5

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?

Hussein El Feky
  • 6,627
  • 5
  • 44
  • 57

1 Answers1

1

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

Community
  • 1
  • 1
AAnkit
  • 27,299
  • 12
  • 60
  • 71