title: How to update ui from asynctask
body: <p>I've seen many examples of how to do this, but I can't figure how to implement it in my code.</p>
  
  <p>I am using this <a href="http://www.androidhive.info/2012/01/android-json-parsing-tutorial/" rel="noreferrer">code</a>.<br>
  I have updated the url, so it will receive a json with dynamic data.
  What I'm trying to do is to automatically update the list every 30 secs with this code.</p>
  
  <pre><code>Handler handler = new Handler();
      Runnable refresh = new Runnable() {
          public void run() {
              new GetContacts().execute();
              handler.postDelayed(refresh, 30000); 
          }
      };
  </code></pre>
  
  <p>It refreshes, and calls the url and gets the data, but the UI does not get updated.</p>
  
  <p>Thanks for any hints to point me in the right direction.</p>
  
  <p><a href="http://www.androidhive.info/2012/01/android-json-parsing-tutorial/" rel="noreferrer">http://www.androidhive.info/2012/01/android-json-parsing-tutorial/</a></p>