android - how to store subItems of listView in an new array -


this listview in xml file`

 <listview     android:id="@+id/list"     android:layout_width="match_parent"     android:layout_height="match_parent" /> 

this data entered in listview

 listview petlistview = (listview) findviewbyid(r.id.list);     //attach empty view     view emptyview = findviewbyid(r.id.empty_view);     petlistview.setemptyview(emptyview);     //no pet data yet cursor set null     mcursoradapter = new petcursoradapter(this, null);     petlistview.setadapter(mcursoradapter); 

in subitem of listview there phone numbers, want copy phone number in listview new array.


Comments