0
I want you to appear in one ListView
all the information of a select I gave. I can do only with txt by displaying 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 wondering how to insert this information into a ListView
.
contrato = response.getString("contrato");
tipo = response.getString("tipo");
horario = response.getString("horario");
Could clarify better where PHP comes into this story and what its relationship to the problem?
– Woss
I connect Json with PHP where on the server there is a PHP file with SELECT. My doubt is how to take the String "contract, type and time" and put in a Listview to appear more than 1 die on the screen. I am currently using a Textview to show the result but only 1 appears.
– Ronaldo Amaral
the php tag makes no sense for that question
– Marceloawq