Reputation: 3681
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
Upvotes: 4
Views: 7821
Reputation: 4742
From your service, start an activity and finish() it real fast!
Upvotes: 2