How to use simple_list_item_2 with android listview?
<p>how did I have to extend my example to use a two line listview (for example read out the email from database)?</p>

<pre><code>    ArrayList&lt;String&gt; db_results = new ArrayList&lt;String&gt;();
    Cursor c = db.rawQuery("SELECT lastname, firstname FROM contacts ORDER BY lastname",null);
    while(c.moveToNext()) {
        db_results.add(String.valueOf(c.getString(c.getColumnIndex("lastname"))) + ", " + String.valueOf(c.getString(c.getColumnIndex("firstname"))));
    }
    c.close();
    lv1.setAdapter(new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1,db_results));
</code></pre>

<p>Thanks ...</p>
