private static PostResponseAsyncTask task;
task = new PostResponseAsyncTask(Registrados_HassMovil.this);
task.execute(url_mostrarinformacion+"?fecha="+registro.getText().toString()+"&huerto="+huerto.getText().toString());
Here the problem does not accept words with space ie orchard = hello world
@Override
public void processFinish(String s) {
String Estado;
try {
JSONArray jsonArray = new JSONArray(s);
for (int i = 0; i < jsonArray.length(); i++) {
Informacion.putExtra("id", (jsonArray.getJSONObject(i).getString("id")));
}
startActivity(Informacion);
finish();
} catch (JSONException e) {
e.printStackTrace();
}
}
When it's a simple word, it's the part of the url where I get the orchard parameter hello up there all right but if I send hello world does not return anything to me for the space that there is. Any solution?