Android CountDownTimer onTick method not called -


I have this code in Android

  Private Zero startStageTwoTimer (long term utlastet two ) {Timer = new countdown timer (time-unilestage two, 1000) {finial on public zero} {timer canal (); } @ Override tick on the public null (long up until now) {log. V ("millisUntilFinished", millisUntilFinished + ""); Calendar Calendar = Calendar.getInstance (); SimpleDateFormat formatter = New SimpleDateFormat ("hh: mm: ss", localegate default ()); Calendar.setTimeInMillis (millisUntilFinished); TextView.setText (formatter.format (calendar.getTime ())); }         }.Start(); } Where is "time-unitstage to two" the next day is a few hours long, so I refresh the textView and change its text on every other (in the ontic method ) I want to make The problem is that the onTick method is called only a few times, and then it is being called at all, why is it so? The thing is that I want to create a timer in the activity, which does not count till that time   

time transliteration two milliseconds and not seconds

so if you run an hour If needed, then should be timeUntilStageTwo 3.600.000


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -