So here is how it is :
I have an AsyncTask with a TimerTask. Every 15 seconds the AsyncTask is run. The AsyncTask gets XML data and put those in dynamically created TextView contained in dynamically create TableRow.
onPostExecute i create all my tableRow and TextView and then in order to not have them double instead of refresh i remove the tableRow views.
protected void onPostExecute(Document result)
{
if(TableLayout.getChildAt(1) == null)
{
//All my code to show tableRow and TextView
else
{
int u = 20;
while(tl.getChildAt(1) != null)
{
if(tl.getChildAt(u) != null)
tl.removeViewAt(u);
u--;
}
}
So yeah everything works just fine. I just want to know if there is some way to ask my TimerTask to restart right away instead of waiting x millis sec for timerTask so start again?
Thanks for your help!