How to continue the timer (started in activity1) after activity2 is started?
<p>I start a timer in activity1. And in the timer task, I run some code continuously for a long time. Then I sometimes need to start activity2 like below.</p>

<pre><code>Intent intent = new Intent();
intent.setClass(Tomato.this, History.class);
startActivity(intent);      
</code></pre>

<p>But then error ocurs:</p>

<pre><code>FATAL EXCEPTION: timer-1
</code></pre>

<p>Could anyone help?</p>

<p><strong>Further:</strong></p>

<p>I tested again, and found that this error didn't ocur every time. Now I cannot even repeat it. 
Thanks for all of you!</p>
