How about you try this
public List<Registration> getList(SearchReport sc)
List<Registration> crReg = new ArrayList<Registration>();
String selectQuery = "SELECT * FROM " + TABLE_REGISTRATION + " WHERE " + DATE_COLUMN + " BETWEEN "
+ sc.getFrom() + " AND " + sc.getUntil() + " AND " + sc.getName();
SQLiteDatabase db = this.getReadableDatabase();
Then
List<Registration> src = db.getList(sc) ;
Then read up on SQL injection and how your code is susceptible to it.
0
solved Fetching Data from Sqlite Database to TableLayout in Android