I saw this post Brightness Screen Filter
which describes how to create a simple screen filter.
That code used
private void setBrightness(int brightness) {
try {
IHardwareService hardware = IHardwareService.Stub.asInterface(
ServiceManager.getService("hardware"));
if (hardware != null) {
hardware.setScreenBacklight(brightness);
}
} catch (RemoteException doe) {
}
}
But i could not find the IHardwareService.jar
Can anyone explain me the code that i should use to create this simple app?
Providing the jar file would be also appreciated!