(CountDownTimer) cdt = new CountDownTimer(0, 1000) { public void onTick(long millisUntilFinished) { // mTextField.setText("seconds remaining: " + millisUntilFinished / 1000); } public void onFinish() { //mTextField.setText("done!"); } }.start();// at the end of your thread call
cdt.stop(); //
On Tuesday, July 31, 2012 7:46:49 AM UTC-5, Narendra Singh Rathore wrote:
Hi all, please suggest me how to execute something after 10 seconds from the start of AsyncTask.--
I have used AsyncTask for different purpose. But, now I want to update my UI after 10 seconds.
Or to show a toast after specific time.
I actually want to perform some other task after 10 seconds, while the original task is running
please let me know how to do this.?
Thank you all.
NSR
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment