title: Cant pass data from JSONObject result to ListView
body: <p>I'm new to developing Android application using PHP and MySQL, I'm currently following a guide for a simple CRUD using Volley. I bumped into something which I can't populate my ListView with the JSONObject result. I already checked if my app got the api's result which it did still doesnt display anything on the ListView </p>
  
  <p>JSONObject Result</p>
  
  <p><a href="https://i.stack.imgur.com/9l8JI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9l8JI.png" alt="enter image description here"></a></p>
  
  <p>Here's my code</p>
  
  <pre><code> private void loadLogList(){
          StringRequest stringRequest = new StringRequest(Request.Method.GET, JSON_URL,
                  new Response.Listener&lt;String&gt;() {
  
                      public void onResponse(String response){
                          try{
                              JSONObject obj = new JSONObject(response);
                              JSONArray logsArray = obj.getJSONArray("logs");
                              System.out.print("Object :" +obj);
  
                              for(int i = 0;i &lt; logsArray.length();i++){
                                  JSONObject logObject = logsArray.getJSONObject(i);
  
                                  LogsModel model = new LogsModel(logObject.getString("date"),
                                          logObject.getString("time_in"),
                                          logObject.getString("time_out"),
                                          logObject.getString("division"),
                                          logObject.getString("department"),
                                          logObject.getString("designation"),
                                          logObject.getString("log_content"));
  
                                          logList.add(model);
                              }
                              LogsAdapter adapter = new LogsAdapter(logList,getApplicationContext());
                              lv.setAdapter(adapter);
  
                          } catch (JSONException e) {
                              e.printStackTrace();
                          }
                      }
  
                  },
                  new Response.ErrorListener(){
                      @Override
                      public void onErrorResponse(VolleyError error){
                          Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();
                      }
                  });
          RequestQueue requestQueue = Volley.newRequestQueue(this);
          requestQueue.add(stringRequest);
      }
  </code></pre>
  
  <p>Here is my ListView Adapter</p>
  
  <pre><code>public class LogsAdapter extends ArrayAdapter&lt;LogsModel&gt; {
  private List&lt;LogsModel&gt; logList;
  
  private Context context;
  
  public LogsAdapter(List&lt;LogsModel&gt; logList, Context context){
      super(context,R.layout.layout,logList);
      this.logList = logList;
      this.context = context;
  }
  @Override
  public View getView(int position, View convertView, ViewGroup parent){
      LayoutInflater inflater = LayoutInflater.from(context);
  
      View listViewItem = inflater.inflate(R.layout.layout,null,true);
  
      TextView txtDate = (TextView) listViewItem.findViewById(R.id.txtDate);
      TextView txtTimeIn  = (TextView) listViewItem.findViewById(R.id.txtTimeIn);
      TextView txtTimeOut  = (TextView) listViewItem.findViewById(R.id.txtTimeOut);
      TextView txtDivision  = (TextView) listViewItem.findViewById(R.id.txtDivision);
      TextView txtDesignation  = (TextView) listViewItem.findViewById(R.id.txtDesignation);
      TextView txtDepartment  = (TextView) listViewItem.findViewById(R.id.txtDepartment);
      TextView txtActivities = (TextView) listViewItem.findViewById(R.id.txtActivities);
  
      LogsModel logs = logList.get(position);
  
      txtDate.setText(logs.getDate());
      txtTimeIn.setText(logs.getTime_in());
      txtTimeOut.setText(logs.getTime_out());
      txtDivision.setText(logs.getDivision());
      txtDesignation.setText(logs.getDesignation());
      txtDepartment.setText(logs.getDepartment());
      txtActivities.setText(logs.getLog_content());
  
      System.out.println("Model" +logs);
      return listViewItem;
  
  }
  </code></pre>