title: OOM using volley
body: <pre><code>private void load() {
      // TODO Auto-generated method stub
      JsonObjectRequest coinReq = new JsonObjectRequest(url,
              null, new Response.Listener&lt;JSONObject&gt;() {
                  @Override
                  public void onResponse(JSONObject response) {
                      hidepDialog();
                      try {
  
                      jsonarray = response.getJSONArray("coins");
                      // Parsing json
                      for (int i=0; i &lt; jsonarray.length() ;i++) {
                              JSONObject obj = jsonarray.getJSONObject(i);
                              Coin coin= new Coin();
                              coin.setCost(obj.getString("catagory1"));
                              coin.setThumbnailUrl(obj.getString("pict_url"));
                              coin.setLot(obj.getString("minimum_bid"));
                              coin.setDesc(obj.getString("title"));
                              coin_list.add(coin);
                              }
                          } catch (JSONException e) {
                              e.printStackTrace();
                          }
                      // notifying list adapter about data changes
                      // so that it renders the list view with updated data
                      adapter.notifyDataSetChanged();
                  }
              }, new Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      hidepDialog();
  
                  }
              });
      AppController.getInstance().addToRequestQueue(coinReq);
  }
  </code></pre>
  
  <p>While parsing large JSON data its giving out of memory error. 
  can some one give some solution to deal with out of memory problem for large json data.</p>