title: ArrayAdapter showing error cannot resolve constructor adapter error
body: <p>My ArrayAdapter shows cannot resolve adapter. Please let me know what is wrong with the syntax. </p>
  
  <pre><code> @Override
      public void onRequestSuccess(List&lt;Order&gt; Items) {
          Toast.makeText(HomeActivity.this, "Success", Toast.LENGTH_SHORT).show();
           List&lt;Order&gt; list = new ArrayList&lt;Order&gt;();
  
          ListView listView = (ListView) findViewById(R.id.listview);
  
          ListAdapter&lt;Order&gt; adapter = new ListAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, list);
          listView.setAdapter(adapter);
  
      }                 
  </code></pre>
  
  <p>MY Order class looks like this. </p>
  
  <pre><code>public class Order {
  public String createdOn;
  public String id;
  public String lastModifiedOn;
  public String trackingNumber;
  public String tripId;
  public OrderEntry orderEntry;
  public String tripOrderStatusValue;
  public String notificationStatus;
  public String remark;
  public String createdBy;
  public String orderId;
  public String deliveryReasonCode;
  public Boolean isTripStarted;
  public Boolean isTripCompleted;
  public Boolean isOutScanned;
  public String shipmentType;
  public String deliveryTime;
  </code></pre>
  
  <p>}</p>
  
  <p>And my ListAdapter looks like this. </p>
  
  <p>public class ListAdapter extends ArrayAdapter {</p>
  
  <pre><code>public ListAdapter(Context context, int textViewResourceId) {
      super(context, textViewResourceId);
      // TODO Auto-generated constructor stub
  }
  
  private List&lt;Order&gt; items;
  
  public ListAdapter(Context context, int resource, List&lt;Order&gt; items) {
  
      super(context, resource, items);
  
      this.items = items;
  
  }
  
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
  
      View v = convertView;
  
      if (v == null) {
  
          LayoutInflater vi;
          vi = LayoutInflater.from(getContext());
          v = vi.inflate(R.layout.list_row_myschedule, null);
  
      }
  
      Order p = items.get(position);
  
      if (p != null) {
  
          TextView tt = (TextView) v.findViewById(R.id.textview1);
          TextView tt1 = (TextView) v.findViewById(R.id.textview2);
          TextView tt3 = (TextView) v.findViewById(R.id.textview3);
  
          if (tt != null) {
              tt.setText(p.orderStatusValue);
          }
          if (tt1 != null) {
  
              tt1.setText(p.reasonCode);
          }
          if (tt3 != null) {
  
              tt3.setText(p.trackingNumber);
          }
      }
  
      return v;
  }
  </code></pre>
  
  <p>}</p>