title: The content of the adapter has changed but ListView did not receive a notification: Cross-Threading issue?
body: <p>I am attempting to edit a <code>ListView</code> on a regular interval using TimerTask:</p>
  
  <pre><code>public static TimerTask mTtRefreshUpload = new TimerTask() {
              @Override
              public void run() {
                      ((Activity) context).runOnUiThread(new Runnable() {
                          @Override
                              public void run() {
                                  // Should create new adapter in here, not in Background Thread
                                  refreshStatusItemAdapter = new RefreshStatusItemAdapter(context, R.layout.simple_list_item_upload, Constants.mLlItems);
                              }
                          });
              }
  };
  </code></pre>
  
  <p>But I get this error:</p>
  
  <blockquote>
    <p>java.lang.IllegalStateException: The content of the adapter has
    changed but ListView did not receive a notification. Make sure the
    content of your adapter is not modified from a background thread, but
    only from the UI thread. Make sure your adapter calls
    notifyDataSetChanged() when its content changes.</p>
  </blockquote>
  
  <p>I have looked into the <a href="http://developer.android.com/reference/java/util/TimerTask.html" rel="nofollow">documentation for TimerTask</a>, but this has not helped.</p>
  
  <p>What is the problem? Does it have to do with cross threading problems?</p>