how to display the checked elements from a listview - android
<p>I have the following listview : <a href="http://www.vogella.de/articles/AndroidListView/article.html" rel="nofollow">http://www.vogella.de/articles/AndroidListView/article.html</a> the chaper: <code>8. Tutorial: Domain Model and Rows interaction</code> </p>

<p>In MyList class, in the <code>OnCreate()</code> method I've added:</p>

<pre><code>setContentView(R.layout.button), where the layout button is containting:

&lt;ListView
android:id="@android:id/list"
...
&lt;/ListView&gt;
</code></pre>

<p></p>

<p>After pressing the OK button I would like to print all the checked elements from the ListView. How to do that? Need help. Appreciate</p>
