Eu implementei e invoquei o método no método insert() da seguinte forma:
private ContentValues toContentValues(Student student) {
ContentValues contentValues = new ContentValues();
contentValues.put("name", student.getName());
contentValues.put("telephone", student.getTelephone());
contentValues.put("address", student.getAddress());
contentValues.put("site", student.getSite());
contentValues.put("note", student.getNote());
contentValues.put("photo", student.getPhoto());
return contentValues;
}
public void insert(Student student) {
ContentValues cv = toContentValues(student);
getWritableDatabase().insert(TABLE, null, cv);
}
.
Gostaria de saber se está correto. Obrigado.