I was looking for a way to see if CountDownTimer is working or not, but I can not find a way, any help would be greatly appreciated
if (position == 0) { mCountDown = new CountDownTimer((300 * 1000), 1000) { public void onTick(long millisUntilFinished) { mTextField.setText("seconds remaining: " + millisUntilFinished / 1000); } public void onFinish() { mTextField.setText("0:00"); String path = "/sdcard/Music/ZenPing.mp3"; try { mp.reset(); mp.setDataSource(path); mp.prepare(); mp.start(); } catch (IOException e) { Log.v(getString(R.string.app_name), e.getMessage()); } } }.start(); }
To do this, how can I check if mCountDown is running?
android timer countdowntimer
user3224105
source share