title: public List<Model> loadInBackground() method in android does not get data from jSon Array
body: <p>I am developing an application using android and i'm trying to get the jSon Array displayed in Listfragment using the loadInBackground() method below in my  DataListLoader class:</p>
  
  <pre><code>class DataListLoader extends AsyncTaskLoader&lt;List&lt;Model&gt;&gt; {
  List&lt;Model&gt; mModels;
  String jsonString;
  String name = "Daniel Nyerere", phone = "0652400670";
  
  public DataListLoader(Context context) {
      super(context);
      loadInBackground();
  }
  
  
  
  public List&lt;Model&gt; loadInBackground() {
      // You should perform the heavy task of getting data from
      // Internet or database or other source
      // Here, we are generating some Sample data
      // Create corresponding array of entries and load with data.
      final List&lt;Model&gt; entries = new ArrayList&lt;Model&gt;(50);
      StringRequest stringRequest = new StringRequest(
              Request.Method.GET, "http://10.0.2.2/webapp/json_get_data.php", new Response.Listener&lt;String&gt;() {
          @Override
          public void onResponse(String response) {
              if (response.trim().contains("server_response")) {
                  jsonString = response.toString();
                  try {
                      JSONObject jsonObject = new JSONObject(jsonString);
                      JSONArray jsonArray = jsonObject.getJSONArray("server_response");
                      int count = 0;
  
                      while (count &lt; jsonArray.length()) {
                          JSONObject jo = jsonArray.getJSONObject(count);
                          name = jo.getString("name");
                          phone = jo.getString("user_phone");
                          entries.add(new Model(name, phone));
                          System.out.println("DATA FROM JSON ARRAY: " + name + " " + phone);
                          count++;
                          return;
                      }
                  } catch (JSONException e) {
                      e.printStackTrace();
                  }
              }
          }
      }, new Response.ErrorListener() {
          @Override
          public void onErrorResponse(VolleyError error) {
  
          }
      });
      RequestQueue requestQueue = VolleySingleton.getInstance().getRequestQueue();
      requestQueue.add(stringRequest);
      entries.add(new Model(name, phone));
      return entries;
  }
  </code></pre>
  
  <p>But when i try to run it the data from System.out.println("DATA ENTRIES: "+entries); comes as null list ,so no data get displayed in the fragment activity . Anyone who can help me to fix it so that i get data from json because it consume me a lot of time</p>