문제

I'm trying to make the LED of the HTC Legend color blue along with my notification.

    notif.ledARGB = color.BLUE; 
    notif.ledOnMS = 100;
    notif.ledOffMS = 100;
    notif.flags |= Notification.FLAG_SHOW_LIGHTS;

The led just keeps flashing green (and not in the requested pattern). Is there something wrong with the code or doesn't the Legend support controlling the LED?

도움이 되었습니까?

해결책

Both the HTC Hero and the HTC Nexus One had their LED's locked to only one color in the stock build so the Legend is probably too.

The hardware is (most likely, as Hero/N1) capable of full color so future updates (or custom ROMS) will/may unlock it.

다른 팁

Is the Legend even on sale anywhere yet? You may not be running a final version of the Legend software.

Or it may be that HTC decided not to add support for multicolor notification lights for some reason. A similar problem is present on the Nexus One, I believe it always flashes white no matter what color you request, even though the hardware is capable of doing multiple colors.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top