title: ArrayList into ArrayAdapter
body: <p>I'm trying to put an arraylist method into an arrayadapter but i am unable to do so.
  I am getting <code>The constructor ArrayAdapter&lt;String&gt;(new Runnable(){}, int, ArrayList&lt;RetrieveInternet&gt;) is undefined</code></p>
  
  <p>ArrayAdapter</p>
  
  <pre><code>            ArrayAdapter&lt;String&gt; arrayAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, getPackages());
  </code></pre>
  
  <p>Arraylist method:</p>
  
  <pre><code>private ArrayList&lt;RetrieveInternet&gt; getPackages() {
      ArrayList&lt;RetrieveInternet&gt; apps = getPermissions(true); /* false = no system packages */
      final int max = apps.size();
      for (int i=0; i&lt;max; i++) {
          apps.get(i);
          Log.e("TAG", apps.get(i).toString());
      }
      return apps;
  }
  </code></pre>