title: Synchronous POST method with Volley library
body: <p>I am sending pin number to my local server using Volley APIs (for completing phone number registration process) as mentioned below</p>
  
  <pre><code>final HashMap&lt;String, String&gt; params = new HashMap&lt;String, String&gt;();
  params.put("PHONE_NUMBER",1234567890);
  params.put("PIN", 9999);
  
  addRequestToQueue("http://"127.0.0.1:5000"/registerClient", params);
  
  
  public void addRequestToQueue(String url, final HashMap&lt;String, String&gt; params)
  {
  
  JsonObjectRequest jsonRequest = new JsonObjectRequest (url, new JSONObject(params), new Response.Listener&lt;JSONObject&gt;() { @Override public void onResponse(JSONObject response) {VolleyLog.v("Response from server: %s", response.toString());}},new Response.ErrorListener() {@Override public void onErrorResponse(VolleyError error) {VolleyLog.e("Error:", error.toString());}});
  
  
  mRequestQueue.add(jsonRequest);
  
  }
  </code></pre>
  
  <p>This is working fine and storing information on server but i am unable to get the response code/string from server. Probably it is because of Asynchronous call... </p>
  
  <p>would someone please help me to resolve the issue, i need to get the response string/code from server so that i can verify that user properly registered.</p>