in my android application i\'m using Timer schedule.but getting Timer-0 fatal exception as below.how can i remove it.i have also mentioned code below -
01-28 13:
use runOnUiThread for updating UI element from Timertask run Method as :
myTimer.schedule(new TimerTask() { @Override public void run() { Current_Activity.this.runOnUiThread(new Runnable() { public void run() { // update UI here } }); } },0, 1000);