java android load items to listview from database?
<p>Okay so i have a database, and i want it so you can favorite items.</p>

<p>Would i make it so you can save items then it will load it into a list view?</p>

<p>this is my load thing</p>

<pre><code>//Calls the database, gets a list of names.
    // if listofnames.size()==0 keep name, otherwise
    // change name to first name.
    ArrayList&lt;String&gt; nameList = new ArrayList&lt;String&gt;();
    favList = db.getName();
    if(favList.size()&gt;0){
        name.setText(favList.get(0));
</code></pre>

<p>But that just sets a text i want it to add items..</p>
