start the countdown . concode_field_sep long mCountdownInterval concode_elem_sep long mStopTimeInFuture concode_elem_sep int MSG concode_elem_sep long mMillisInFuture concode_elem_sep Handler mHandler concode_field_sep void cancel concode_elem_sep void onTick concode_elem_sep void handleMessage concode_elem_sep void onFinish
CountDownTimer function ( ) { if ( mMillisInFuture <= 0 ) { onFinish ( ) ; return this ; } mStopTimeInFuture = SystemClock . elapsedRealtime ( ) + mMillisInFuture ; mHandler . sendMessage ( mHandler . obtainMessage ( MSG ) ) ; return this ; }