Folks, I got an AppWidget working great, but I need it to be updated
whenever it is visible. It doesn't need to be refreshed if the user is
not looking at it. For instance, if the device is sleeping, or if it
sits on a home screen that the user is not looking at, then it needs
no update. But the second it becomes visible, it needs to be updated,
and then periodically every minute, until it's no longer visible, at
which point it doesn't need any update, and so on.

Setting an intent SCREEN_ION does not work. I don't want to sleep an
alarm when it's not visible (especially not every minute!) Any idea
about how I can achieve this?

FYI, back in the Pocket PC/Windows Mobile era, the Today screen plug-
ins had those features i.e. the plug-ins would be notified when
visible, and periodically afterwards. This is what I'm looking for
because that perfectly fits my apps requirements. Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to