0
I’m new on the subject and new here, I’m displaying an excerpt of the code I’m using for testing. The data is normally displayed the first time I query through the application, but if I perform a new update, update, or delete, the data is not updated in the application, it remains displaying the old data.
I have a more complete app that I am developing but I came across this error and crashed. I have tried to clear the cache and disable but without result.
public void CarregarWebServices()
{
progresso = new ProgressDialog(this);
progresso.setMessage("Carregando...");
progresso.show();
String url = "https://meu_endreco/arquivo.php";
jsonObjectReq = new JsonObjectRequest(Request.Method.GET, url,null,this,this);
request.add(jsonObjectReq);
}
@Override
public void onErrorResponse(VolleyError error)
{
progresso.hide();//fechando
Toast.makeText(this,"Erro: "+error,Toast.LENGTH_LONG).show();
}
@Override
public void onResponse(JSONObject response)
{
progresso.hide();//fechando
textView.setText(response.toString());//exibindo os dados
}