List of usage examples for android.widget Chronometer start
public void start()
From source file:hku.fyp14017.blencode.ui.controller.SoundController.java
private void continuePlayingSound(Chronometer chronometer, long base) { chronometer.setBase(base); chronometer.start(); }
From source file:org.linphone.InCallActivity.java
private void registerCallDurationTimer(View v, LinphoneCall call) { int callDuration = call.getDuration(); if (callDuration == 0 && call.getState() != State.StreamsRunning) { return;//from ww w .j av a 2 s .com } Chronometer timer = (Chronometer) v.findViewById(R.id.callTimer); if (timer == null) { throw new IllegalArgumentException("no callee_duration view found"); } timer.setBase(SystemClock.elapsedRealtime() - 1000 * callDuration); timer.start(); }
From source file:co.taqat.call.CallActivity.java
private void registerCallDurationTimer(View v, LinphoneCall call) { int callDuration = call.getDuration(); if (callDuration == 0 && call.getState() != State.StreamsRunning) { return;//from www . ja v a 2s .c o m } Chronometer timer; if (v == null) { timer = (Chronometer) findViewById(R.id.current_call_timer); } else { timer = (Chronometer) v.findViewById(R.id.call_timer); } if (timer == null) { throw new IllegalArgumentException("no callee_duration view found"); } timer.setBase(SystemClock.elapsedRealtime() - 1000 * callDuration); timer.start(); }