views:

944

answers:

1

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:-

http://stackoverflow.com/questions/1791340/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

A: 

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

MrSnowflake
Sorry for my later reply. I have tried to start the activity and close it in the oncreatre() method, but as I close the application all the changes I have made to modify the screen brightness has no effect. The solution to this problem is to create a transparent activity.Thanks for giving right direction.
Naveen Murthy