raqz wrote: > Here whenever the user clicks an item, the array is getting updated, > irrespective if the user is clicking the item to select it or deselect > it.
Don't override onListItemClick(). If you are going to use ListView.CHOICE_MODE_MULTIPLE, then use getCheckedItemPositions() to determine which items were checked. http://stackoverflow.com/questions/1342073/android-selected-positions-in-a-listview If you were using a CursorAdapter, you could use getCheckedItemIds() instead, but an ArrayAdapter doesn't have IDs, only positions. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- 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

