Create a simple screen filter

徘徊边缘 提交于 2019-12-11 09:27:24

问题


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!


回答1:


I found your jar file. It can be obtained in this link

by clicking "View raw file" on the right bottom side of the page.

Hope it helps you.

If the link is broken, just warn me.



来源:https://stackoverflow.com/questions/22748031/create-a-simple-screen-filter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!