dear friends,
i want to call a function "ABC" after 10 seconds in android again and again untill i use return statement to quit.
any one guide me how to achieve this?
dear friends,
i want to call a function "ABC" after 10 seconds in android again and again untill i use return statement to quit.
any one guide me how to achieve this?
Use CountDownTimer
CountDownTimer t = new CountDownTimer( Long.MAX_VALUE , 1000) {
public void onTick(long millisUntilFinished) {
Log.d("test","Timer tick");
}
public void onFinish() {
Log.d("test","Timer last tick");
t.start();
}
}.start();