Dear in an activity where we are making a change, I am setting the value of the spinner (rs)
for(int i = 0; i < clienteAdapter.getCount(); i++) {
Cliente elemento = (Cliente) clienteAdapter.getItem(i);
if(elemento.getId() == pedido.getId_cliente()) {
spCliente.setSelection(i);
break;
}
}
I'm getting the data that populates SQLite's Spinner, would it have a more elegant way of doing this?