android - Refreshing screen brightness instantaneously -


I am trying to set up system screen brightness immediately I am using a service to do this. This is the code I am using.

Settings. System.IPIIT (serosolar,

settings. SCREEN_BRIGHTNESS, 255);

This code works fine. But it is not instantaneous, the screen brightness changes in price, but the screen still looks sluggish. I can verify the quality of the screen brightness by reading it back and it is 255. If I lock the screen and come back, the screen is completely shiny, how can I get it, when I set the system brightness up to the maximum, I see a completely bright screen?

BTW, I want to do this by using a service, there is no activity!

I will take a look at this link, especially the first answer. Although it is a bit messy.

Basically you need to refresh the screen after starting a dummy activity and then finish () Dummy activity says I would have commented but I have enough Points are I


Comments