What's the correct way to turn the led on for notifications?

Ati

Member
Licensed User
Longtime User
Hi,

I have a notification, with the following code:

B4X:
Notification1.SetInfo(a, b, Events)
Notification1.Vibrate = True
Notification1.Light = True
Notification1.Notify(1)

When the notification comes, it gives a sound (fine), it vibrates (fine), but does not turn the led on. This is on a real device, Android 2.2.2, where other applications, such as SMS, do turn the flashing light on.

What am I doing wrong?

Thanks,

Ati
 

barx

Well-Known Member
Licensed User
Longtime User
is the device screen on when the notification is issued, the LED usually doesn't show if the screen is on.
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
What library you using (or default b4a notification). I did used to notice my LED not working on my Desire Z prior to Notification Builder. Though it was just me though.
 
Upvote 0

Ati

Member
Licensed User
Longtime User
What library you using (or default b4a notification). I did used to notice my LED not working on my Desire Z prior to Notification Builder. Though it was just me though.

I'm just using the default b4a notification.

I'll check out the Notification Builder tomorrow, because I really need that led. :)
 
Upvote 0
Top