title: Inserting the multiple values in the database on OnClickListener event
body: <p>I want to insert multiple values in the database when in click the save button but the code not work correctly ?</p>
  
  <pre><code>public void insert(String note) {
          ContentValues cv = new ContentValues();
          ContentValues cv1 = new ContentValues();
          ContentValues cv2 = new ContentValues();
          cv.put("note", note);
          cv1.put("topic",topic1);
          cv2.put("subTopic",subTopic1);
          getWritableDatabase().insert("Notes", "note", cv);
          getWritableDatabase().insert("Notes", "topic", cv1);
          getWritableDatabase().insert("Notes", "subTopic", cv2); }
  
  
  
  
  private View.OnClickListener onSave = new View.OnClickListener() {
  
      public void onClick(View v) {
          if (noteId == null) {
              helper.insert(editNote.getText().toString(), , );
          } else {
              helper.update(noteId, editNote.getText().toString());
              noteId = null;
          }
          ourCursor.requery();
          editNote.setText("");
      }
  };
  </code></pre>