I am making a query in a class my problem is that I have some license plates, here in Colombia licenses plates are as it follows ABC 123. I need my query to only return to me, in this case, the ones that end with 2
This is what i did following the documentation...
private void queryForPlaca(String terminaEn){
ParseQuery<ParseObject> query = ParseQuery.getQuery("TestDrive");
query.whereFullText("Placa", terminaEn);
query.findInBackground(new FindCallback<ParseObject>() {
@Override
public void done(List<ParseObject> objects, ParseException e) {
for (ParseObject obj:objects
) {
listaDeVehiculos.add(obj);
}
ListaVehiculosPicoYPlacaAdapter adapter= new ListaVehiculosPicoYPlacaAdapter(getActivity(),listaDeVehiculos);
listadoTestDrive.setAdapter(adapter);
adapter.notifyDataSetChanged();
}
});
}
terminaEn variable querys for the licenses places plates depending on the day selected in a calendar (in this case 2). My problem is that not only my listaDeVehiculos is not returning any values and the other problem that I see is that it also returns values I don't need for example ABS 124, AXX 524, AEE 234 etc. How should i modify my query?.