how to use onresume() and onpause() for when on tabclick change event "means refresh tab content" each time click
<p>when i change the tab and push again previous clicked  tab i want to reload item in it again means refresh the tab containing class with new data...so thats why i use onpause() and onresume() method but so how to delete old loaded data when i click first time on tab...and  when i click it gives array index out of bound exception..</p>

<pre><code>  protected void onPause() {
     super.onPause();


 }



protected void onResume()
{

   super.onResume();

   new ProgressTask6().execute();

}
</code></pre>
