you can use this timer given in devloper guide new CountDownTimer(30000, 1000) {
public void onTick(long millisUntilFinished) { TextView txttimer=(TextView) findViewById(R.id.timeremaining); txttimer.setText("Time remaining: 0:" + millisUntilFinished / 1000); } public void onFinish() { } }.start(); On Mar 13, 1:54 pm, Alimooghashang <alimooghash...@gmail.com> wrote: > thank you very much > now my application works well > > On Tue, Mar 13, 2012 at 11:21 AM, tsukishiro yamazaki < > > > > > > > > tsukishir...@gmail.com> wrote: > > You can take the sample here > >http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog > > for your reference. > > Check the sample code marked by the section " *Example ProgressDialog > > with a second > > thread*<http://developer.android.com/guide/topics/ui/dialogs.html#> > > " > > > Thanks and best regards, > > - tsukishiro > > > On Tuesday, March 13, 2012 1:20:18 PM UTC+9, Ali wrote: > > >> Hi > >> i have made a timer and a timer task, and i need to update my textview > >> every seconds > >> how can i do that? > >> thanks > > > -- > > 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+unsubscr...@googlegroups.com > > 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en