i want to show a listview with check box like
checkbox listitem1
checkbox listitem2
checkbox listitem3
.
Its better to accomplish the list using a ChechBoxPreference.
The main advantage of using preference is that you don't need to write code to save the value and you can easily get the value in any activity. The value is stored in the android preference as a key-pair value. You can refer the value using the 'KeyName'.
The following link will help you to get an idea about this:
http://geekswithblogs.net/bosuch/archive/2010/12/03/android---creating-a-custom-preferences-activity-screen.aspx