On Thu, Jun 24, 2010 at 10:31 AM, Jake Colman <[email protected]> wrote:
> For this widget to work it must be regularly checking the time and the
> calendar since at any minute it might be time to display the next
> appointment.  Does this mean I have to update the widget's display every
> minute?  Clearly not, but how else?

Update the display when the data changes. That will occur at the earlier of:

-- when the time for the previous event passed, so you would need to
show the next event
-- when the Google Calendar GData APIs tell you there is a new event
that is earlier than the one you are presently showing

> But do we only
> update if the screen is active?

Ideally, no, you update when the data changes.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to