title: How to return parsed data from Volley onResponse?
body: <p>I am using Volley StringRequest to make GET call to web services using following code.</p>
  
  <pre><code>ArrayList&lt;HashMap&lt;String, Object&gt;&gt; list;
  StringRequest getRequest = new StringRequest(Request.Method.GET,activity.getString(R.string.URL),
              new Response.Listener&lt;String&gt;() {
  
                  @Override
                  public void onResponse(String response) {
                      int success;
  
                  //Parsed data and Want to return list 
                  //return list;
  
              }, new Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) {
  
                      Log.e("Error.Response", error.toString());
  
  
                  }
              });
      request.add(getRequest);
  </code></pre>
  
  <p>Any idea how do I return the list data?</p>