public boolean insert(FamilyProfileClass familyProfile) { this.open(); ContentValues cvInsert = new ContentValues(); cvInsert.put(SQLiteHelper.COL_ICARE_FAMILY_PROFILE_NAME, familyProfile.getFname()); cvInsert.put(SQLiteHelper.COL_ICARE_FAMILY_PROFILE_NUMBER, familyProfile.getFNumber()); cvInsert.put( SQLiteHelper.COL_ICARE_FAMILY_PROFILE_RELATIONSHIP, familyProfile.getFrelationship()); cvInsert.put(SQLiteHelper.COL_ICARE_FAMILY_PROFILE_AGE, familyProfile.getFage()); cvInsert.put(SQLiteHelper.COL_ICARE_FAMILY_PROFILE_BLOOD_GROUP, familyProfile.getFbloodGroup()); cvInsert.put(SQLiteHelper.COL_ICARE_FAMILY_PROFILE_WEIGHT, familyProfile.getFweight()); cvInsert.put(SQLiteHelper.COL_ICARE_FAMILY_PROFILE_HEIGHT, familyProfile.getFheight()); cvInsert.put( SQLiteHelper.COL_ICARE_FAMILY_PROFILE_DATE_OF_BIRTH, familyProfile.getFdateOfBirth()); cvInsert.put( SQLiteHelper.COL_ICARE_FAMILY_PROFILE_SPECIAL_NOTES, familyProfile.getFspecialNotes()); long check = iCareDatabase.insert(SQLiteHelper.TBL_I_CARE_FAMILY_PROFILE, null, cvInsert); this.close(); if (check < 0) return false; else return true; }