app/src/main/java/com/example/steve/todoandroid/DBHelper.java
//insert to do list item into DB
insert to do list item into DB
insert to do list item into DB
public boolean addListItem(Integer pos, String listItem, String priority, String dueDate, boolean completed)
    {
        SQLiteDatabase db = this.getWritableDatabase();
        ContentValues contentValues = new ContentValues();
        contentValues.put("cur_pos", pos);
        contentValues.put("todo_list_item", listItem);
        contentValues.put("priority", priority);
        contentValues.put("due_date", dueDate);
        contentValues.put("status", completed);
        db.insert("toDoListItems", null, contentValues);
        return true;
    }
public boolean addListItem ( Integer pos , String listItem , String priority , String dueDate , boolean completed ) { SQLiteDatabase db = this . getWritableDatabase ( ) ; ContentValues contentValues = new ContentValues ( ) ; contentValues . put ( "cur_pos" , pos ) ; contentValues . put ( "todo_list_item" , listItem ) ; contentValues . put ( "priority" , priority ) ; contentValues . put ( "due_date" , dueDate ) ; contentValues . put ( "status" , completed ) ; db . insert ( "toDoListItems" , null , contentValues ) ; return true ; }
insert to do list item into DB
insert to do list item into DB