title: ArrayList<String> Custom adapter
body: <p>I can't do ListView adapter of ArrayList because<br>
  the whole of data is from SQLite</p>
  
  <pre><code>            final ArrayList&lt;String&gt; list= helper.GetAllValues("x1", column2);
      //final StableArrayAdapter adapter = new StableArrayAdapter(this, android.R.layout.simple_list_item_1, list);
      final ListAdapter adapter = new ListAdapter(this, list, img);
      listview.setAdapter(adapter);
  </code></pre>
  
  <p>ListAdapter.java<br></p>
  
  <pre><code>public class ListAdapter extends ArrayAdapter&lt;String&gt; {
  
  private final Activity context;
  private final String[] itemname;
  private final Integer[] imgid;
  
  public ListAdapter(Activity context, String[] itemname, Integer[] imgid) {
      super(context, R.layout.items, itemname);
      // TODO Auto-generated constructor stub
  
      this.context=context;
      this.itemname=itemname;
      this.imgid=imgid;
  }
  
  public View getView(int position,View view,ViewGroup parent) {
      LayoutInflater inflater=context.getLayoutInflater();
      View rowView=inflater.inflate(R.layout.items, null,true);
  
      TextView txtTitle = (TextView) rowView.findViewById(R.id.TitleLabel);
      ImageView imageView = (ImageView) rowView.findViewById(R.id.icon);
      TextView extratxt = (TextView) rowView.findViewById(R.id.SecondLabel);
  
      txtTitle.setText(itemname[position]);
      imageView.setImageResource(imgid[position]);
      extratxt.setText("Description "+itemname[position]);
      return rowView;
  
  };
  }
  </code></pre>
  
  <p>Error:(66, 37) error: constructor ListAdapter in class ListAdapter cannot be applied to given types;<br>
  required: Activity,String[],Integer[]<br>
  found: Listofmeals,ArrayList,Integer[]<br>
  reason: actual argument ArrayList cannot be converted to String[] by method invocation conversion</p>
  
  <pre><code>private final String[] itemname;
  private final Integer[] imgid;
  </code></pre>
  
  <p>It's wrong the same as this:<br></p>
  
  <pre><code>txtTitle.setText(itemname[position]);
  imageView.setImageResource(imgid[position]);
  extratxt.setText("Description "+itemname[position]);
  </code></pre>
  
  <p>How type Arraylist I have to insert? </p>