1
我看到這個後Brightness Screen Filter 介紹如何創建一個簡單的屏幕過濾器。
該代碼使用創建一個簡單的屏幕過濾器
private void setBrightness(int brightness) {
try {
IHardwareService hardware = IHardwareService.Stub.asInterface(
ServiceManager.getService("hardware"));
if (hardware != null) {
hardware.setScreenBacklight(brightness);
}
} catch (RemoteException doe) {
}
}
,但我無法找到IHardwareService.jar
任何人都可以解釋我,我應該使用它來創建這個簡單的應用程序代碼?
提供jar文件也將感激!
讓我試試,如果這個jar文件的工程,我會警告你,然後 – noobProgrammer
當我使用的代碼應用程序崩潰...你確定這是正確的jar文件? – noobProgrammer
你的應用何時崩潰?你能顯示堆棧跟蹤嗎? – joao2fast4u