title: Inserting EditText & Spinner data to SQLite?
body: <p>I'm trying to figure out how to capture data from a form using EditText &amp; Spinner's and insert it into a SQLite database.  I am able to write the hard coded attributes but when I try to use R.id.fieldName it throws an error due to being an Integer vice a String. </p>
  
  <pre><code>public class PetAdd extends Activity {
  DBAdapter db = new DBAdapter(this);
  private OnClickListener btnPetAddListener = new OnClickListener() {
      @Override
      public void onClick(View arg0) {
          db.open();
          long id;
          id = db.insertPet("name", "type", "breed", "sex", "notes");
           /**id = db.insertPet(R.id.petName, R.id.SpinnerPetType, R.id.petBreed, R.id.SpinnerPetGender, R.id.EditTextPetAddOptions);*/
          db.close();
      }
  };
  </code></pre>
  
  <p>I'm still trying to learn all this stuff and my brain is fried from looking at a plethora of online tutorials, examples and Google documentation.  If anyone can show me how to do this or direct me to a barney style tutorial that breaks it down for me to understand what's going on, it'd be greatly appreciated.</p>