2014-03-30 35 views
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文件也將感激!

回答

0

我找到了你的jar文件。 它可以通過點擊頁面右下方的「查看原始文件」來獲得 link

希望它可以幫助你。

如果鏈接被破壞,只是警告我。

+0

讓我試試,如果這個jar文件的工程,我會警告你,然後 – noobProgrammer

+0

當我使用的代碼應用程序崩潰...你確定這是正確的jar文件? – noobProgrammer

+0

你的應用何時崩潰?你能顯示堆棧跟蹤嗎? – joao2fast4u