Thanks for your reply. According to your suggestion, I checked my source code carefully, and I can sure that the operations on the data item should be right.
I have tried to add the missed class ExpandableListConnector.class to the android.jar, and traced the process. I found that the exception is thrown when it checks the variable mExpGroupMetadataList's item, which is affected by the collapsing/expanding operation of the group in the list view. So I guessed that this exception is raised by the fact that when I tried to update the list with a group removed, the mExpGroupMetadataList's size equaled the expanded groups count, which contained the group I had removed in the group list. I updated my code for this change, and it works fine. I think it might be a bug in the ExpandableListView. In common operation, we have to use direction keys to move the cursor among the items in the ListView, and when some item will be removed, the group containing it must be expanded, and the exception will be raised. Best Regards, Stanley On Dec 11, 12:17 am, android_soft <[email protected]> wrote: > You didn't paste all of your code. But looking at the exception, it > means that you are accessing a list item(at index 0, which means its > of size 1) when infact the list is empty(size 0) . Its probably a bug > in your code in the way you are removing the items --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

