title: Reloading ListView from an AlertDialog
body: <p>How can I reload a ListView from inside an AlertDialog? This AlertDialog is spawned by a ContectMenu.</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      registerForContextMenu(getListView());
      ......
      MatrixCursor cursor;
      cursor = NameManager.getnameList();
      ........
      final SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
              R.layout.row, cursor, from, to);
      setListAdapter(adapter);
  }
  .......
  .......
  case R.id.delete:
              new AlertDialog.Builder(this)
              .setTitle("Delete " + cursor.getString(1))
              .setMessage("Are you sure?")
              .setPositiveButton("Ok",
                      new DialogInterface.OnClickListener() {
                  @Override
                  public void onClick(
                          DialogInterface dialogInterface, int i) {
                      try {
                          .......
                          // TODO reload listview
  
                      } catch (IOException e) {
                          e.printStackTrace();
                          return;
                      }
                  }
              }).setNeutralButton("Cancel", null)
              .create().show();
              return true;
  </code></pre>