当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Problem starting with chronometer

问题描述:

My chronometer is always starting from 0:10 or like some other times... it s not starting from 0:01 itself..any one can help me

Thank you,

网友答案:

i got an answer

  final Chronometer chrono = (Chronometer)findViewById(R.id.chronometer);

  chrono.setBase(SystemClock.elapsedRealtime());
  chrono.start();

once it will help to others thank you,,

网友答案:

you can start chronometer any value you want using setBase method of chronometer.you can also calculate Elapsed Time during start and stop of chronometer

分享给朋友:
您可能感兴趣的文章:
随机阅读: