title: Android: Update ListView Items every 1 minute
body: <p>I have a Custom ListView in my application, containing an ImageView and 3-5 TextViews.</p>
  
  <p>1 of the TextViews shows the time gap between the <strong>current time</strong> and the <strong>time specified</strong> for that ListView item.</p>
  
  <p>Like: <em>Posted 5 minutes ago</em></p>
  
  <p>The question is, how can i update this TextView every minute without any disturbance to the ListView.</p>
  
  <p>Like: <em>if i am looking at the ListView for 5 minutes, just this TextView alone must change from 1 min to 2 mins so on for every item visible</em></p>
  
  <p><strong>What i tried:</strong></p>
  
  <ol>
  <li>set this TextView in <strong>getView()</strong> using <code>System.currentTimeMillis() - givenTime[position];</code></li>
  </ol>
  
  <p>but here the TextView won't get updated if i am not scrolling (not calling the getView) or changing the visibility of the items.</p>
  
  <ol>
  <li>Use a <strong>timeTask()</strong> thread every 1 minute and try to update the TextView of every item</li>
  </ol>
  
  <p>here the problem is i get an Exception:</p>
  
  <pre><code>android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
  </code></pre>
  
  <p>moreover i have no idea how to change the TextView for every ListView item from the Activity.</p>
  
  <p>But this looks like a familiar case.</p>
  
  <p>How can i achieve this?</p>
  
  <p>Thank You</p>