My JSON Code:
Response.Listener<String> responseListener = new Response.Listener<String>() {
@Override
public void onResponse(String response) {
try {
JSONObject jsonResponse = new JSONObject(response);
int success = jsonResponse.getInt("success");
if (success == 0) {
}
if (success == 1) {
}
} catch (JSONException e) {
e.printStackTrace();
}
}
};
nRequest nRequest = new nRequest(edtTextReg.getText().toString(), responseListener);
RequestQueue queue = Volley.newRequestQueue(login.this);
queue.add(nRequest);
How can I find a way that JSON give me the status "server is busy"? Busy means for example: thousands of people use my server.