I did write this code but its of no use as my Chronometer is not getting displayed only. And hence this time ticking is not taking place. Do I need to add some code in code I mentioned above???
On Jan 19, 7:41 am, Brian Dols <brian.d...@gmail.com> wrote: > before you call chrono.start(), try adding a tick listener: > chrono.setOnChronometerTickListener(new > OnChronometerTickListener() > { > > @Override > public void onChronometerTick(Chronometer > chronometer) { > long elapsedTime = > (System.currentTimeMillis() - > chronometer.getBase()) / 1000; > String currentTime = > Utils.verboseTime(elapsedTime); > chronometer.setText(currentTime); > } > }); > > On Jan 18, 4:55 am, rachana govilkar <rachana.govil...@gmail.com> > wrote: > > > Hello All, > > > Using MediaRecorder I could capture Video.But I want to show timer to > > the user exactly same as it shown in > > built-in Camera app. > > So i implemented Chronometer logic > > > private Chronometer chrono; > > chrono = (Chronometer)findViewById(R.id.chronometer1); > > chrono.setBase(SystemClock.elapsedRealtime()); > > chrono.start(); > > > but no luck. > > > Can anybody help me on this issue?? -- 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