How to do repeated actions in Android?
<p><strong>I use such code:</strong>        </p>

<pre><code>t = new Timer();
t.schedule(new TimerTask() { 
  @Override
  public void run() {
    //some action
  }
}, 30000, 30000); 
</code></pre>

<p>If I wrap up application(click Home) and after that recover application then task is canceled. How to solve that problem?</p>
