Change color brightness in android

I want to change the brightness in color

I implemented this ...

Settings.System.putInt(context.getContentResolver(),android.provider.Settings.System.SCREEN_BRIGHTNESS, 200); 

this will change the brightness of my device in black and white.

enter image description hereenter image description here

As shown above, I can change the brightness, but how can I give the color? Is there any other parameter that I don't know?

+1
android brightness
Jan 02 '13 at 18:33
source share
1 answer

This can be done using windows of type TYPE_SYSTEM_ALERT. The idea is that even services can have a Window; therefore, you can use a service that pretends and calls WindowManager # addView () with view and layout options. In your case, the view will only have a background color with an alpha value. You can experiment with various layout options to achieve the desired effect.

The facebook chat chapters also work. Check out this link to learn more about implementation details: http://www.piwai.info/chatheads-basics/ This will give you an idea of ​​how to implement this type of screen overlay.

+4
Sep 19 '14 at 4:42 on
source share



All Articles