dillipk wrote:
>   I have list of Check boxes in a ListActivity.
> 
> 1) How do I select/unselect the check box in the ListActivity?

getListView().setItemChecked(), as described in the Android developer
documentation:

http://developer.android.com/reference/android/widget/ListView.html#setItemChecked(int,%20boolean)

> 2) How do I get the state of a particular checkbox in a list of
> checkboxes?

getListView().isItemChecked(), as described in the Android developer
documentation:

http://developer.android.com/reference/android/widget/ListView.html#isItemChecked(int)

> 3) How do I listen to the event when a checkbox is selcted/unselected?

You don't, as far as I know.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to