예제 #1
0
  private void updatePill() {
    db = new PillReminderDBHelper(getActivity());

    db.updatePill(pill);

    db.closeDB();
  }
예제 #2
0
  private void addPill(String name, int rId) {
    db = new PillReminderDBHelper(getActivity());

    Pill pill = new Pill(name, rId);

    long pill_id = db.createPill(pill);

    db.closeDB();
  }