In Nexus One (at least in version 2.1-update1, and I think that in 2.1), in the "Sound and display" section there is a setting: "Heartbeat light". This does not seem to be present in the "2.1 with Google API" emulator image. I have not tested other devices yet.
Heartbeat: multiple pulse trackball for new notifications http://chris.boyle.name/images/20100206-pulse-trackball.png
I want to install this programmatically without user interaction in order to make the Locale plugin, so the device can attract my attention when I wake up on my desk without shedding light on the room when someone spam me at 4 a.m. It is pretty bright.
I did not see this in android.provider.Settings.System , where many other things on this screen are live, so I had a look at the source of the platform. There are some relevant parts in the NotificationManagerService , in enqueueNotificationWithTag and updateLightsLocked . This disappears in the HardwareService , which seems to be no longer able to take care of user preferences. I do not know where this setting is implemented or how I can affect it.
I fully expect that the answer will be "there is no API for this" (possibly related to the fact that it is specific to Nexus One), and that I can do this to plan (using Locale or something else) Intent of ACTION_DISPLAY_SETTINGS to remind me to set the window manually, which will suck. I hope that something is missing, or that Googler is reading this and can tell me that it is planned to add to the API?
source
share