How to update a list? No form found worked in my case
<p>I have the following structure, a file. ListActivy extends from java like this:</p>

<pre><code>public class Fisc extends ListActivity
</code></pre>

<p>In this file I do some queries in a SQLite database and create an ArrayList of an object, each record in the database is an object and thus an index in ArrayList ...</p>

<pre><code>prog = new Prog();
prog.field = "some string";
progs.add(prog);
</code></pre>

<p>That done I set an adapter:</p>

<pre><code>this.setListAdapter(new ProgsListAdapter(this,progs));
</code></pre>

<p>Each line will have two of my listview TextView and a ListView listview and within this I have another list.</p>

<pre><code>public View getView(int position, View convertView, ViewGroup parent) {
    View view = convertView;

    if(view == null){
        LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        view = inflater.inflate(R.layout.fisc, null);
    }

    Prog prog = myList.get(position);

    if(prog.size() == 0){
      //I need refresh this ProgsListAdapter create in java file in setAdapter.
     this.notifyDataSetChanged();  //nothing happens
    }

    TextView txTime = (TextView) view.findViewById(R.id.time);
    txTime.setText(prog.time);


    ListView lv = (ListView) view.findViewById(R.id.listLines);
    lv.setAdapter(new LinesAdapter(view.getContext(), prog.lines));       
}
</code></pre>

<p>How would I do that?</p>

<p>The result of this in screen is:</p>

<p>ListActivy item 1 
listview item 1<br>
listview item 2</p>

<p>ListActivy item 2<br>
listview item 1<br>
listview item 2<br>
listview item 3</p>

<p>I need refresh listactiivy itens but this is a custom adapter extends baseAdapter...</p>

<p>thanks.</p>
