I used the tutorial and was able to display the list. But as you said To get the selections you would use isItemChecked() on ListView.
I need to hardcode the options to check as to whether it was selected or not. This is cumbersome if its a large list. I checked out the various other functions such as listView.getCheckItemIds(); which returns a long array with ids. How would I be able to insert a button field in that layout such that, once the user is done selecting what ever he wishes to, he could just click the button which could send the array of captured item ids to another activity for processing. On Apr 17, 5:21 pm, raqz <[email protected]> wrote: > Thats great! Thanks.. I was not able to view > yourhttp://github.com/commonsguy/cw-andtutorials/tree/master/20-Notificat... > but I am looking into the other link that you provided. > > Thanks > > On Apr 17, 5:09 pm, Mark Murphy <[email protected]> wrote: > > > > > raqz wrote: > > > Hi, > > > I need to display contents of a list of objects. Capture the selected > > > items and later process it. I have been trying to find a tutorial on > > > net but in vain. > > > Could some one please advise me when can I find a tutorial. > > > I know how to display a list but I want the CheckedTextView option. > > > I use CHOICE_MODE_MULTIPLE in this tutorial from one of my books: > > >http://github.com/commonsguy/cw-andtutorials/tree/master/20-Notificat... > > > However, that is a bit involved, as it's halfway through the book. > > > You can see CHOICE_MODE_MULTIPLE in use here: > > >http://developer.android.com/resources/samples/ApiDemos/src/com/examp... > > > To get the selections you would use isItemChecked() on ListView. > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > Warescription: Three Android Books, Plus Updates, One Low Price! > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group > > athttp://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

