title: Unable to modify ArrayAdapter in ListView: UnsupportedOperationException
body: <p>I'm trying to make a list containing names. This list should be modifiable (add, delete, sort, etc). However, whenever I tried to change the items in the ArrayAdapter, the program crashed, with <code>java.lang.UnsupportedOperationException</code> error. Here is my code:</p>
  
  <pre><code>ListView panel = (ListView) findViewById(R.id.panel);
  String[] array = {"a","b","c","d","e","f","g"};
  final ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
  android.R.layout.simple_list_item_1, array);
  adapter.setNotifyOnChange(true);
  panel.setAdapter(adapter);
  
  Button button = (Button) findViewById(R.id.button);
  button.setOnClickListener(new OnClickListener() {
     @Override
     public void onClick(View v) {
        adapter.insert("h", 7);
     }
  });
  </code></pre>
  
  <p>I tried insert, remove and clear methods, and none of them worked. Would someone tell me what I did wrong?</p>