title: Android volley sending data twice
body: <p>I am using <strong>Volley</strong> Network Library in my application.</p>
  
  <p><strong>The Issue is that it is sending  data more than once when network connection is slow.</strong></p>
  
  <p>And After I Google this issue, all i can find about this issue is below point:</p>
  
  <pre><code>connection.setChunkedStreamingMode(0);
  </code></pre>
  
  <p>But I am not able to edit my volley library Hurlkstack classes.</p>
  
  <p>It says: </p>
  
  <p>The jar of this class file belong to container android Private libraries which does not allow modification to source attachments on it entries.</p>
  
  <p>What should i do can some one help me</p>
  
  <p>i have the following code where should i modify
  .</p>
  
  <pre><code>private void makeJsonObjectRequest() {
      JsonObjectRequest jsonObjReq = new JsonObjectRequest(Method.POST,
              "http://example.com/***.php", obj, new Response.Listener&lt;JSONObject&gt;() {
                  @Override
                  public void onResponse(JSONObject response) {
                      try {
                          response.getString("success");
                          } catch (JSONException e) {
                          e.printStackTrace();
                      }
                  }
              }, new Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) {
                  }
              });
  
      AppController.getInstance().addToRequestQueue(jsonObjReq);
  }
  </code></pre>