Code example for BasicResponseHandler

Methods: handleResponse

0
            } 
 
            HttpResponse response = utils.getRequest("/devices/infos",
                    "ping_id",value);
 
            ResponseHandler<String> handler = new BasicResponseHandler();
 
            JSONArray array = null;
            try { 
                array = new JSONArray(handler.handleResponse(response));
            } catch (JSONException e) {
                Log.e("PING RESPONSE JSON", "Can't parse JSONArray");
            } catch (IOException e) {
                Log.e("PING RESPONSE IO", "Can't parse JSONArray");
            } 
 
            return array;
        } 
    } 
 
    class PutPhoneNumber extends AsyncTask<String, Void, String> {