title: Android - Refresh data in an AlertDialog?
body: <p>So, if I create an AlertDialog like so:</p>
  
  <pre><code>AlertDialog.Builder b = new AlertDialog.Builder();
  b.setItems(MyStringArray, MyListener);
  b.create().show();
  </code></pre>
  
  <p>And then I want to update the items in the list, i.e. MyStringArray has changed to have more or fewer items. I can't seem to find a way to do this. So far, I've tried getting the ListView from the AlertDialog, but I can't seem to get .setAdapter to work. Is this the right approach, or is there a better way to do this?</p>