title: how to initialize my BaseAdapter
body: <p>Here is my constructor for my custom BaseAdapter</p>
  
  <pre><code>public MyAdapterAds(Activity activity, BaseAdapter delegate) {
      this.activity = activity;
      this.delegate = delegate;
  }
  </code></pre>
  
  <p>I have an arraylist of objects named mObjects. How do I get them into this method from my activity?</p>
  
  <p>How do I initialize my baseAdapter</p>
  
  <p>this is what I tried</p>
  
  <pre><code> myAdapter = new myAdapterAds(MainActivity.this, new ArrayAdapter&lt;myObject&gt;(context, R.layout.my_object_cell, myObjectArray));
  </code></pre>
  
  <p>No reason for this to work, but I had just began rewriting this baseadapter, how would I rewrite that last part to get my array of objects in it?</p>
  
  <p>I keep getting "IllegalStateException: ArrayAdapter requires the resource to be a textview" but I am using an object with several parameters, why would I display a textview?</p>