创建一个简单的网式过滤器 [英] Create a simple screen filter

查看:154
本文介绍了创建一个简单的网式过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到这个发表 亮度屏幕过滤器
其中介绍了如何创建一个简单的屏幕过滤器。结果
 使用了code

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) {          
  }        
 }

但我无法找到 IHardwareService.jar
任何人都可以解释我的code,我应该使用它来创建这个简单的应用程序?

But i could not find the IHardwareService.jar Can anyone explain me the code that i should use to create this simple app?

提供了jar文件也将发AP preciated!

Providing the jar file would be also appreciated!

推荐答案

我发现你的jar文件。
它可以在此得到
链接

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.

希望它可以帮助你。

如果该链接被打破,只是警告我。

If the link is broken, just warn me.

这篇关于创建一个简单的网式过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆