In my application, I need to change the screen backlight for testing. I am atm using API 15 with the external jar Hardware09.jar which has a method called setScreenBacklight(int value).
However when I tried to use it I have an error message like this:
01-01 00:48:24.570: E/AndroidRuntime(2171): java.lang.NoSuchMethodError: android.os.IHardwareService.setScreenBacklight
I dont know what to do in that situation. Is there a way to use that external jar or are there any other ways to control backlight?
Thanks in advance.
This is the screenshot of java build path.

Using that block of code, I manage to manipulate backlight. However I am currently thinking that way wont actually manipulate backlight rather screen brightness.