-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Would this API include the camera flash LED? I think there is an accessibility case to be made here for having the flash LED blink for things like an incoming call. IIRC, android and iphone already support this and I don't see anything like that in the v2.1 accessibility options.
I'd really like to see an API for this. There are lots of cases where my phone is out of my pocket and I cannot hear it (loud music, kids, dogs, etc) but if the camera flash LED would blink, or some other LED would blink, then I wouldn't miss any calls or text messages. +1 - -dave On 09/08/2014 01:02 PM, Fabrice Desré wrote: > On 09/08/2014 12:19 PM, Alexandre Lissy wrote: >> Le 08/09/2014 10:05, Jonas Sicking a écrit : >>> I think we should do a few things here: >>> >>> 1. Introduce a privileged API for controlling the LED. 2. Let >>> the system app use that API in order to blink the LED whenever >>> a notification is rendered. 3. Use the API to indicate battery >>> status (low battery, very low battery, charging) 4. Possibly >>> enable apps to specify an LED pattern when creating >>> notifications. >>> >> >> Yep, however, the Flame currently does not have a LED that we >> could use that easily. There is the charger led, but it's not >> really intended for this, mostly because as far as I could test >> hacking in sysfs, any change would work but get overwritten after >> a couple of seconds. > > There's a proper HAL api to control the lights. It's probably > overriding your hacks as soon as possible ;) > > See > http://androidxref.com/4.4.4_r1/xref/hardware/libhardware/include/hardware/lights.h > > Fabrice > -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJUDhNcAAoJEJ7v31qiCP4gRjsP/3t2gcnDp0vmJcYvIWVCabHA RLBOf6VwGsaYCBM3jUDhhMvTfhVeK3jJhkHinU7t2B0z76DHjcLifPB6RgolPFMT Hxb7fJllUnE0qQrLS49M+dWwLKiy76Kew0f6FD549S8fOqDtS2eHpB6uzqt96MC7 0IyZ7WlC8oPy3ulG7VNS6cWbi2s719q7xDVmRZm+qmMmWnN7EsO1N3zY0hS/wzGh 1clGoYkqIwZXCu/OlUmWMz0S5geI+D8/MOVvyRAklD7ewyzqpWl8zmywXgOyNpU3 B81cVr2Ho49qTSgRyQrwPfx6WzJYS4XSUqtQ7yYo4ZiN9ZMlPN9BQ4jEPZXM3dGI PfT315Y2TLwq1cdCkfQxH0ZghZ4hQfdRmBKQlMn526i7Z+avLo6RXEK6f9m7ub35 D88i7yn1zZPIsjOstoXbRqc+KT4Sp8nsgUA/zoVYEJxwjrW9TxRavnv+hRI2gM8N EQ10JEQtPojKoRFOBrT4SZ5YMnAMTo3TmJ66sSewYCIa4eMORWDjh/rA8jSD8TZy nPt/UfI5SQ+0aGCTxH8vbseiQ/Un+m9SlwOjndLuw2kzgkhjmqdeLXFYTfvu2kTb FjsHJEtxqY3vjghS8VNlVKkKWa+NKMMMXw1Acm1vKK6xtngDXWp7yXdYCltaO6mc OZzavclYiURtXqW02qhP =uR1E -----END PGP SIGNATURE----- _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
