HTC ONE M8红外线发射后,棒棒堂更新不工作 [英] HTC ONE M8 IR Blaster after Lollipop Update not working

查看:328
本文介绍了HTC ONE M8红外线发射后,棒棒堂更新不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用红外发射器的HTC一台设备上。该棒棒糖更新之前,我能做到这一点没有问题,但现在我的code不起作用。

I need to use the infrared transmitter on an HTC One device. Before the lolipop update I could do this no problem, but now my code does not work.

    ConsumerIrManager mCIR = (ConsumerIrManager)getSystemService(Context.CONSUMER_IR_SERVICE);
    mCIR.transmit(freq, pat);

,其中频率和模式都需要的值给力电视上(从制造商)

where freq and pattern are the required values to power on my TV (from the manufacturer)

我不明白运行此code任何错误,唯一的问题是,红外发射器不亮在HTC one设备。 (通过摄像头观察红外线发射)。我不明白,在银河S5设备完全相同的code ++工程。我想AP preciate从别人的帮助谁就能得到红外工作在HTC one设备。

I do not get any errors running this code, the only problem is that the infrared transmitter does not light up on HTC one devices. ( looking at ir blaster through camera ). I dont understand, the exact same code works on galaxy s5 devices. I would appreciate any help from someone who can get infrared to work on HTC one devices.

推荐答案

是的,这个问题似乎已经<一个href="https://$c$c.google.com/p/android/issues/detail?id=158391&q=ir&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars"相对=nofollow>报道官方bug跟踪系统为Android。

Yes, this issue seems to have been reported on the official bug tracker for Android.

我开发一个应用程序,它使用的官方消费性红外端口API   在安卓4.4奇巧介绍。由于棒棒糖卷展栏   喜欢的HTC One M8或三星Galaxy S5我越来越流行的设备   从用户的许多报道称,设备,我的应用程序不能正常工作的   棒糖。我没有自己的棒棒糖设备,不过我借了M8   并做了一些测试。

I am developing an App which uses the official Consumer IR API introduced in Android 4.4 KitKat. Since the Lollipop rollouts for popular devices like the HTC One M8 or Samsung Galaxy S5 I am getting many reports from users of said devices that my App is not working on Lollipop. I do not own a Lollipop device myself, but I borrowed an M8 and did some tests.

这似乎是方法ConsumerIrManager.transmit()是一个无操作上   棒糖。无论是给定模式,它立即返回。

It seems like the method ConsumerIrManager.transmit() is a no-op on Lollipop. No matter was pattern is given, it returns instantly.

在发现银河S5的用户有同样的问题,我   联系上事HTC的支持,被告知联系   谷歌的支持。

Before discovering that Galaxy S5 users have the same problem, I contacted the HTC support on that matter and was told to contact the Google support.

这似乎S5设备所得到的相同的问题为好,尽管它很难说,因为开发人员都可以从S5业主矛盾的报道。

It would seem S5 devices are getting the same issue as well, although it's hard to tell because developers are getting contradictory reports from S5 owners.

下面是一个 HTC只解决有人发现他的M7后停止,因为棒棒糖的更新工作。他基本上恢复到 IR HTC API 之前的早期版本他们已经切换到谷歌官方的API。

Here is an HTC-only fix that someone found for his M7 after it stopped working because of a Lollipop update. He basically reverted to an earlier version of the IR HTC API before they had switched to the official Google's api.

否则,您应星的bug跟踪系统的问题,也许是指向你自己的用户做同样的。越多的人出演这个问题,高优先级的将被给予。

Otherwise, you should star the issue on the bug tracker, and perhaps point your own users to do the same. The more people star this issue, the higher priority it will be given.

这篇关于HTC ONE M8红外线发射后,棒棒堂更新不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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