Question

Problem:-

I want to control the brightness of screen using a background service in android.

Existing Solutions:-

There are similar question posted in the form in below link:-

Adding screen brightness controls to android application

Why existing solution will not work?

All the solution provided in the link works well with an Activity, but I want to write a Background Service which controls the brightness of the screen.

So can you someone please help me find a solution on this issue.

Thanks in advance

Was it helpful?

Solution

From your service, start an activity and finish() it real fast!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top