I have this countdown timer that I want running even after my activity closes
<p>Here is my code,</p>

<pre><code>             new CountDownTimer(30000, 1000) {

             public void onTick(long millisUntilFinished) {
                 forgotpass.setText("seconds remaining: " + millisUntilFinished / 1000);
             }

             public void onFinish() {
                 forgotpass.setText("done!");
             }
          }.start();
</code></pre>

<p>I want it to continue to run even after my activity or application closes.</p>

<p>So far when i press the back button or the home button on the application it is running on it stops automatically and when i reopen the activity it starts back on 30. Is there any possible way I can have it continue to countdown even when the application or the activity is not running?</p>
