Android: Updating textview at a some specific interval of time
<p>Hello I am trying to update the textview at every certain time, but it only updates the first and then it force closes, here is the code:</p>

<pre><code>try {
           timer = new Timer();
           timerTask = new TimerTask() {
              @Override
              public void run() {
             //Download file here and refresh
                  updateRecSMSCount(count);
              }
           };
        timer.schedule(timerTask,0, 3000);
        } catch (IllegalStateException e){

        }
void updateRecSMSCount(Integer count)
{
    TextView numRecSMS=(TextView)findViewById(R.id.numRecSMS);
    numRecSMS.setText(count.toString());

}
</code></pre>

<p>Can someone help please?</p>
