Did you checked?
http://developer.android.com/reference/java/util/Timer.html
http://developer.android.com/reference/java/util/TimerTask.html
import java.util.Timer;
import java.util.TimerTask;
// ...
Timer timer1 = new Timer();
timer1.schedule(new Task(), 0, 3*1000); /* 3 seconds */
// ...
class Task extends TimerTask {
Task() {}
public void run() { /* your code */ }
}
--tm
On Mon, May 30, 2011 at 12:16 PM, khanh_qhi™ <[email protected]> wrote:
> Hi there,
> I need a counter time in my application. Is there any time Counter?
>
> --
> Regards,
> Khanh.
>
> --
> 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
--
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