Naveen Murthy
Naveen Murthy

Reputation: 3681

Control screen brightness in android using " Background Service"

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

Answers (1)

MrSnowflake
MrSnowflake

Reputation: 4742

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

Upvotes: 2

Related Questions