View Single Post
Old 02-03-2012, 06:22 AM   #30
vortigern
Member
vortigern will become famous soon enoughvortigern will become famous soon enoughvortigern will become famous soon enoughvortigern will become famous soon enoughvortigern will become famous soon enoughvortigern will become famous soon enough
 
Posts: 13
Karma: 662
Join Date: Jan 2012
Device: PRS-T1
I've still not managed to get abd working so haven't got this done yet but I was thinking some other way to do it.
It would be nice to have the brightness power control be able to change between modes and although there's no broadcast on brightness change, it might be possible to set a ContentObserver on it

From Here:
Quote:
Google's Power Control appwidget registers a ContentObserver in order to listens to changes to the brightness settings. Not quite the same as listening for actual screen brightness changes, but better than nothing: resolver.registerContentObserver(Settings.System.g etUriFor(Settings.System.SCREE*​N_BRIGHTNESS), false, this); resolver.registerContentObserver(Settings.System.g etUriFor(Settings.System.SCREE*​N_BRIGHTNESS_MODE) , false, this);
Although I guess it might just be easier to stick it in its own widget
vortigern is offline   Reply With Quote