how to display the selected items from a listview in the next listview
<p>I have a custom listview. I have to select some items from this listview and display it in the next layout listview when a button click event is clicked.</p>

<pre><code>lv5=(ListView)findViewById(R.id.ListView05);
lv5.setAdapter(new ArrayAdapter&lt;String&gt;(this,R.layout.productselecttext,R.id.pstext,arr));

lv5.setOnItemClickListener(new OnItemClickListener(){
    public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
        if(view.findViewById(R.id.oi).getVisibility()==ImageView.VISIBLE){
            ImageView icon = (ImageView)view.findViewById(R.id.oi); 
            icon.setImageResource(R.drawable.vi); 
        }
    } 
 });
</code></pre>

<p>In this way I have selected using an imageview. How can I get only the selected items and display in another listview?</p>
