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.
Consume
I've just fixed this problem, for Samsung devices:
Before Android 4.4.3 each element of the pattern is the number of cycles for the on/off pulse.
For Android 4.4.3 and above each element of the pattern if the number of micro seconds for the on/off pulse.
Example:
To transmit a wave 0.5s on, 0.5 off, 0.5 on, at 38000Hz
Before Android 4.4.3 your pattern would be [19000, 190000, 19000] - The 19000 comes from 0.5s*38000Hz
For Android 4.4.3+ your pattern would be [500000, 500000, 500000] - that is you convert each time to microseconds(us).
I'm going to blame Google on this one: Before 4.4.3 was released their API said to use the number of cycles, after 4.4.3 the changed it to say to use microseconds(us), Samsung simply followed the API thus breaking our apps.