@@ -0,0 +1,2242 @@
+package com.navrit.dosenet;%0A%0Aimport android.util.Log;%0Aimport android.widget.Toast;%0A%0Aimport com.android.volley.Request;%0Aimport com.android.volley.Response;%0Aimport com.android.volley.VolleyError;%0Aimport com.android.volley.VolleyLog;%0Aimport com.android.volley.toolbox.JsonObjectRequest;%0Aimport com.navrit.dosenet.app.AppController;%0A%0Aimport org.json.JSONArray;%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0Aimport java.util.UUID;%0A%0Apublic class getJSONHelper %7B%0A%0A    private static String TAG = getJSONHelper.class.getSimpleName();%0A    String urlJsonObj = %22https://radwatch.berkeley.edu/sites/default/files/output.geojson?%22 +%0A            UUID.randomUUID().toString().replaceAll(%22-%22,%22%22);%0A%0A    private String%0A%0A    /**%0A     * Method to make json object request where json response starts with %7B%0A     * */%0A    private void makeJsonObjectRequest() %7B%0A        JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.GET,%0A                urlJsonObj, null, new Response.Listener%3CJSONObject%3E() %7B%0A            @Override%0A            public void onResponse(JSONObject response) %7B%0A                Log.v(TAG, response.toString());%0A%0A                try %7B%0A                    JSONArray station_array = response.getJSONArray(%22features%22);%0A                    for (int i = 0; i %3C station_array.length(); i++) %7B%0A                        JSONObject station = station_array.getJSONObject(i);%0A%0A                        JSONObject properties = station.getJSONObject(%22properties%22);%0A                        String name = properties.getString(%22Name%22);%0A                        String latest_measurement = properties.getString(%22Latest measurement%22);%0A                        double dose = properties.getDouble(%22&microSv/hr%22);%0A%0A                    %7D%0A                %7D catch (JSONException e) %7B%0A                    e.printStackTrace();%0A                    Log.e(TAG, e.getMessage());%0A                %7D%0A            %7D%0A        %7D, new Response.ErrorListener() %7B%0A%0A            @Override%0A            public void onErrorResponse(VolleyError error) %7B%0A                VolleyLog.e(TAG, %22Error: %22 + error.getMessage());%0A                Log.e(TAG, error.getMessage());%0A            %7D%0A        %7D);%0A%0A        AppController.getInstance().addToRequestQueue(jsonObjReq);%0A    %7D%0A%7D%0A

Encapsulate getJSON