title: Creating a list with input from 2 EditText
body: <p>I am making a app where part of it is a list of the books you have read, with the title and the author in each entry.  I have 2 EditText boxes and 1 button.  I want to take the title and the author from the boxes when I tap the button and put them in a list entry together.  I have the part where it takes the data from the boxes and assigns them each to a variable already, I am just having troubles with the list.  Heres the code I have so far: </p>
  
  <pre><code>    package com.lijap.apps.BookTracker;
      import android.app.ListActivity;
      import android.os.Bundle;
      import android.view.View;
      import android.widget.Button;
      import android.widget.EditText;
      import android.widget.ListView;
  
      public class BooksRead extends ListActivity {
  
  Button addbook;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
       setContentView(R.layout.booksread);
         addbook = (Button) findViewById(R.id.b_addbook);
         addbook.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
              //called when you press the button
              String bookName =((EditText) findViewById(R.id.et_title)).getText().toString();
              String bookAuthor =((EditText) findViewById(R.id.et_author)).getText().toString();
              // do the rest of the job
  
          }
      });
  
  }
  }
  </code></pre>