Take the 2-minute tour ×

I want to display light when notification fires in android

i have try with below code but the screen not displays light

if(isBlink) {
share|improve this question
add comment

2 Answers

I am not sure about your code and logic inside. But following questions may help you to debug.

  1. How do you trigger isBlink ? Is this through some signal handler ?

  2. How notification parameters gets acknowledged once set ? I suppose you are using some timer or loop logic.

share|improve this answer
1) isBlink is boolean and it is true if i want light on notification 2) yes i get notification but i am not getting Light on notification –  Dharmendra Apr 21 '11 at 13:10
add comment

Try to receive this notification with the screen off.. I think google have this requirement to show lights on the led.

share|improve this answer
Or try to shut down the screen after receive the notification.. it works for me in my N1 –  Ian Holing Aug 4 '11 at 14:52
add comment

Your Answer


