I have the following listview : http://www.vogella.de/articles/AndroidListView/article.html the chaper: 8. Tutorial: Domain Model and Rows interaction
In MyList class, in the OnCreate() method I’ve added:
setContentView(R.layout.button), where the layout button is containting:
<ListView
android:id="@android:id/list"
...
</ListView>
After pressing the OK button I would like to print all the checked elements from the ListView. How to do that? Need help. Appreciate
Just make the list in getModel() public. Then in the activity use the following
Call getSelected() method from where you want.