android - notification led doesn't work -


notification.flags |= notification.flag_show_lights; notification.ledargb = color.blue; notification.ledonms = 1000;  notification.ledoffms = 1000;  notification.flags |= notification.flag_ongoing_event; notificationmanager.notify(notifyid, notification); 

the code work in app, doesn't work in another. led doesn't flash.
answer appreciated.

sorry careless, reaseon 1 line code:

notification.defaults = notification.default_all; 

it means setting, include light, sound, vibration, follow system setting.

because of this, code doesn't work.

notification.flags |= notification.flag_show_lights; notification.ledargb = color.blue; notification.ledonms = 1000;  notification.ledoffms = 1000; 

Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -