Can't get items from ListView
<p>I have this class but I cannot get the ListView Items without the click listener ... I simply want to update the color of the text onResume ...</p>

<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);

    setListAdapter( new ArrayAdapter&lt;String&gt;(this, R.layout.overlay_options, FishSpecie.getFishSpecies()));

    mList = getListView();
    mList.setTextFilterEnabled(true);
    mList.setOnItemClickListener(new OnItemClickListener(){

        public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
                long arg3) {
            // TODO Auto-generated method stub
            Boolean status = doClick(((TextView) arg1).getText());
            if(status == true)
            {
                ((TextView) arg1).setTextColor(Color.GREEN);
                Toast.makeText(getApplicationContext(), ((TextView) arg1).getText() + " Enabled", Toast.LENGTH_SHORT).show();
            }
            else
            {
                ((TextView) arg1).setTextColor(Color.DKGRAY);
                Toast.makeText(getApplicationContext(), ((TextView) arg1).getText() + " Disabled", Toast.LENGTH_SHORT).show();
            }               
        }           
    });

    // Create all the overlay check boxes and labels
}

@Override
protected void onStart() {
    // TODO Auto-generated method stub
    super.onStart();
    updateList();
}

@Override
protected void onResume() {
    // TODO Auto-generated method stub
    super.onResume();
    updateList();
}

protected void updateList() {
    mList = getListView();

    for (int i = 0; i &lt; mList.getChildCount(); i++)
    {
        View v = mList.getChildAt(i);
        TextView tx = (TextView) v.findViewById(R.layout.overlay_options);
        if(FishSpecie.isFishSpecieEnabled(tx.getId()) == true) {
            // Change color of list item
            tx.setTextColor(Color.GREEN);
        }
        else
        {
            tx.setTextColor(Color.DKGRAY);
        }
    }
}
</code></pre>

<p>View v = mList.getChildAt(i); this never finds the child</p>

<p>To clarify mList.getChildCount() always returns 0</p>

<p>I think i've nearly fixed it but I can't understand why the color change doesn't take affect ... Below is the new code for the update function</p>

<pre><code>protected void updateList() {

    for (int i = 0; i &lt; mArray.getCount();i++) {
        //TextView v = (TextView)(findViewById((int) mArray.getItemId(i)));
        TextView v = (TextView) mArray.getView(i, null , null);
        String text = (String) v.getText();
        if(FishSpecie.isFishSpecieEnabled(i) == true) {
            // Change color of list item
            v.setTextColor(Color.GREEN);
        }
        else
        {
            v.setTextColor(Color.DKGRAY);
        }
    }
}
</code></pre>
