Android has java.util.Timer and related.
http://code.google.com/android/reference/java/util/Timer.html

Use that on a background thread and call back into the UI via a
Handler and Message.  But be careful about updating every second, make
sure you really need to do that.

On Oct 22, 3:36 am, "cH3Lu eu" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Does anybody knows if I can register a function to be called at every second
> within an activity? if not, what do you suggest to do if I need a widget to
> refresh at every 1 second?
>
> Thanks a lot.
--~--~---------~--~----~------------~-------~--~----~
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