0

I'm trying to access LED NOTIFICATION in Android, following this and this question here on Stack. When I try to call

Settings.System.getInt(resolver, "notification_light_pulse")

the program crashes because it can't find notification_light_pulse.

How can I do to access the LED NOTIFICATION if this method fail?

Community
  • 1
  • 1
Luca
  • 823
  • 4
  • 11
  • 31

1 Answers1

0

This is an undocumented API that will only work on some devices, and crash on others.

Patrick
  • 3,578
  • 5
  • 31
  • 53