title: Multiple Volley request in a single Activity
body: <p>I have implemented Volley request in this <code>Activity</code>. The request is sent twice  whenever this <code>comment()</code> method is called. This method is called <code>onClickListner</code> of <code>Button</code> where <code>Activity</code> is launched when a <code>Button</code> is clicked on card which is placed in <code>Fragment</code>.</p>
  
  <pre><code>private void comment1(String id) {
      String url = "http://52.66.103.123:8000/comment/" + GlobalUtilityClass.getValueOnUserPrefernces(getContext(), "my_id") + "/" + id;
      StringRequest stringRequest = new StringRequest(Request.Method.POST, url,
              new Response.Listener&lt;String&gt;() {
                  @Override
                  public void onResponse(String response) {
                      Log.e("comentfriend", response);
                     // Toast.makeText(getContext(), response, Toast.LENGTH_LONG).show();
                  }
              },
              new Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      Log.e("responsefriend_error", error.toString());
  
                      Toast.makeText(getContext(), error.toString(), Toast.LENGTH_LONG).show();
                  }
              }) {
          @Override
          protected Map&lt;String, String&gt; getParams() {
              Map&lt;String, String&gt; arguments = new HashMap&lt;String, String&gt;();
              arguments.put("commentName", edittext1);
              return arguments;
          }
      };
      RequestQueue requestQueue = Volley.newRequestQueue(getContext());
      requestQueue.add(stringRequest);
      stringRequest.setRetryPolicy(new DefaultRetryPolicy(
              6000,
              DefaultRetryPolicy.DEFAULT_MAX_RETRIES,
              DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
  }
  </code></pre>