title: ListViews - how to use ArrayAdapter.addAll() function before API 11?
body: <p>I'm trying update a ListView with an entirely new ArrayList. For API 11 it works great using the addAll(...) method, but this is not available for earlier APIs. I can't figure out how to go about updating an entire list like this for older versions.  </p>
  
  <pre><code>ArrayAdapter&lt;String&gt; textList = new ArrayAdapter&lt;String&gt;(listener, R.layout.list_item, stringList);
  listener.setListAdapter(textList);
  </code></pre>
  
  <p>Then later...</p>
  
  <pre><code>textList.clear();
  textList.addAll(stringList); &lt;--- works fine for Android 3.0 (API Level 11) and beyond, but not before. 
  </code></pre>
  
  <p>How did you go about doing this before addAll() was introduced in API 11? Thanks.</p>