I want to appear in a ListView
all the information of a select that I gave. I can do just with txt appearing an information:
public void sendjsonrequest() {
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, HOST, null, new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
try {
contrato = response.getString("contrato");
tipo = response.getString("tipo");
horario = response.getString("horario");
//txtContrato.setText(contrato);
//txtTipo.setText(tipo);
//txtHorario.setText(horario);
} catch (
JSONException e)
{
e.printStackTrace();
}
}
I'm not sure how to enter this information into ListView
.
contrato = response.getString("contrato");
tipo = response.getString("tipo");
horario = response.getString("horario");