0

I would like to ask how can I able to start my chronometer without clicking a button? For example, if I click the "Play" button, the next chronometer in the next layout will automatically start.

I tried to just start it in my level 1 class, but after I run it, I got this error in my console:

ActivityManager: Warning: Activity not started, its current task has been brought to the front.

I have this code for my Chronometer:

Chronometer chrono = null;
chrono.start();

chrono = (Chronometer)findViewById(R.id.timer);
pingboo23
  • 137
  • 1
  • 3
  • 15

0 Answers0