0

Hy I am working on flashing a back flash light in different color. First I have worked on flashing the back light on a certain conditions such as download complete . But Now I want to handle the download interrupt or handling the error . And I want to show the error by flashing the different color of a back flash light . Is it possible.? if yes then please share me a code here.

Bundle of thanks in advance.

  • Possible duplicate of [How to change color of Camera LED / Flashlight in Android](http://stackoverflow.com/questions/17898035/how-to-change-color-of-camera-led-flashlight-in-android) – Bishan Feb 14 '17 at 04:49

2 Answers2

1

You can't change the color of the camera flash, but some devices have a notification light. Maybe try flashing the notification light on certain errors.

Matt L
  • 21
  • 2
0

There is no way way you can do that using SDK. Can you change color of your Tubelight in your room? Even if there are devices with multicolor LEDs, I don't think device manufacturers expose an open SDK for developers to use it.

Seshu Vinay
  • 13,560
  • 9
  • 60
  • 109
  • As Mark says in this answer: http://stackoverflow.com/questions/17898035/how-to-change-color-of-camera-led-flashlight-in-android you could tape a piece of color transparent polythene to achieve this :) – Seshu Vinay Dec 30 '14 at 07:08