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 <[email protected]>
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to