use of cl.smartcities.isci.transportinspector.backend.Service in project androidApp by InspectorIncognito.
the class ServiceHelper method getServiceSuggestionsById.
public List<Service> getServiceSuggestionsById(String service) {
String query = "SELECT * FROM " + DataBaseContract.Service.TABLE_NAME + " WHERE " + DataBaseContract.Service.CODE + " LIKE ? LIMIT 10";
String[] params = new String[] { service + "%" };
Cursor cursor = this.getReadableDatabase().rawQuery(query, params);
List<Service> busList = getServicesFromCursor(cursor);
cursor.close();
return busList;
}
Aggregations