0

I'm working on a media player app that need to show the brightness control when is possible. However, Android doesn't seem to provide an API to check that. I could use a workaround to set brightness to an arbitrary value and read back the value and see if that changes anything. However, I don't think that is reliable and still looking to see if there is an official API does that.

Thanks,

EDIT1: I didn't make my question clear. I am not looking to change brightness but I'd like to know if brightness can be changed. For example, on Android STB (connected to HDTV), brightness control is not possible so my app should not show brightness control button.

Yi Wang
  • 552
  • 2
  • 7
  • 20
  • Can you provide more details about your problem? Because e.g. here is a solution: http://stackoverflow.com/a/7658364/2004186 and SCREEN_BRIGHTNESS was added in API 1. – Krzysztof Skrzynecki Aug 05 '14 at 19:06
  • For API > 10 you can add extra black filled view above view, which brightness you would like to change and manipulate with alpha by setAlpha method – Krzysztof Skrzynecki Aug 05 '14 at 19:09

0 Answers0