title: ListView vanishes after repaint
body: <p>I have the following code:</p>
  
  <pre><code>public void addToList(View view) {
  
      String str = edit.getText().toString();
      list.add(str);
      this.setContentView(R.layout.activity_view);
      //new QueryInList().execute("hi");
     // Intent intent = new Intent(this, ViewActivity.class);
      //startActivity(intent);
  }
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
  
      while (bsp &lt;10)
      {
          list.add(bsp.toString());
          bsp++;
      }
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_view);
      ListView v;
      v = (ListView)findViewById(R.id.v);
      edit  = (EditText)findViewById(R.id.textfield);
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_expandable_list_item_1, list );
      v.setAdapter(adapter);
      //v.setOnClickListener((OnClickListener) this);
  
      if (savedInstanceState == null) {
          getSupportFragmentManager().beginTransaction()
                  .add(R.id.container, new PlaceholderFragment()).commit();
      }
  }
  </code></pre>
  
  <p>The first method is my onClick method, it is evoked whenever I press a button.
  Now, my idea was that in such a case the gui gets repainted.
  This happens, however, the Listview then vanishes. Do I have to repaint it ? How?</p>