android - Update a Widget when user switches to sleep mode -


i have created little app widget, , want widget update when user switches sleep mode (or whatever mode called when short-push power button).

i have searched around no avail. tried registering broadcastreceiver, not allowed in widget.

if not possible, means widget has wait updateperiodmillis timeout, that's @ least 30 minutes , kind of breaks user experience.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -