How to determine when SCREEN_OFF_TIMEOUT has changed?

by Mike Bautista » Thu, 14 Jan 2010 04:05:15 GMT


Sponsored Links
 I'm trying to make my first widget that toggles the screen time out
settings.  Is there a way for the widget to be notified when
Settings.System.SCREEN_OFF_TIMEOUT has been changed?  I would like to
know this so I can update the widget graphic accordingly.



How to determine when SCREEN_OFF_TIMEOUT has changed?

by Dianne Hackborn » Thu, 14 Jan 2010 04:19:07 GMT


 Sorry there is no notification for this.




>


Sponsored Links


How to determine when SCREEN_OFF_TIMEOUT has changed?

by Mike Bautista » Fri, 15 Jan 2010 12:35:28 GMT


 Thanks for the response.  So what would be the best way to insure that
the state of Settings.System.SCREEN_OFF_TIMEOUT and the view on my
widget stay consistent?  It seems like the only way would be to poll
the setting every X minutes, but perhaps there's a more optimal way?





> >



Other Threads

1. gps checksum never used, validity of message not verified

please note that gps_qemu.c is only used for GPL emulation within the
Android emulation (i.e. it is never used on a real device).
that's why there is little point in checking the checksum here, since all
the messages sent to it are normally generated by the emulator program
(for details, see the do_gps_XXX functions in
external/qemu/android_console.c)

(well, you can attach an external GPS unit to the emulator with the -gps
<device-file> command on Linux, but I'm unsure that much people
have tried that).

If you feel this is important, please feel free to provide a patch for
review to r.android.com (and please modify the android_console.c to generate
a correct checksum too)

regards





--~--~---------~--~----~------------~-------~--~----~

2. How many different fonts are available to WebView in android

Hi,

Can you please tell me how many different fonts are available to WebView in
android?
For example, in my html page (viewed using WebView in android) , how can i
specified the fonts used in my html page (using css) are available on
android?

Thank you.

--~--~---------~--~----~------------~-------~--~----~

3. what is absolute path name of file on SDCard

4. Binding with service lost after calling unbindService()

5. /cache use by android

6. Dialog not reopened after orientation change in Tab Activity

7. Adding images to emulator