title: Android app Back button shows blank screen
body: <p>I have an android app that starts with a simple screen and a "start" a button.  Once the user clicks the button it retrieves code from a url and puts it into a list.  If you press back from the listview it will show a blank screen not a screen with the "start" button.  All the code is in a onCreate statement.  Please excuse me if I am missing the obvious this is my first real android app (aside from the Hello Android tutorial).  Below is the code in the first activity if that helps.</p>
  
  <pre><code>public class Main extends Activity {
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      Button next = (Button) findViewById(R.id.butQR);
      next.setOnClickListener(new View.OnClickListener() {
          public void onClick(View view) {
              setContentView(R.layout.listplaceholder);
              Intent myIntent = new Intent(view.getContext(), NewListActivity.class);
              myIntent.putExtra("race_id", view.getId());
              myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 
              myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
              startActivity(myIntent);
          }
  
      });
  }
  </code></pre>
  
  <p>Update: I wa using setContentView(R.layout.listplaceholder); on button click and in the new oncreate for the next activity.  Thanks for the help.</p>