I mean't to say that you have to manage the different methods, like
getChildId and getChildView and handle exceptions there, when it queries for
the children for the group which contains no child.

Anyway, stack trace would definitely help.


On Wed, Nov 3, 2010 at 9:11 PM, TreKing <[email protected]> wrote:

> On Wed, Nov 3, 2010 at 8:26 AM, dashman <[email protected]> wrote:
>
>> but it crashes somewhere in SimpleExpandableListAdapter code with an array
>> index access exception.
>>
>
> Would you like to post the full stack trace? That would help.
>
> On Wed, Nov 3, 2010 at 8:29 AM, Kumar Bibek <[email protected]> wrote:
>
>> Your group should contain atleast one child, else, it will try to render
>> it's children, and since you don't have any, it throws ArrayIndexOutOfBounds
>> exception
>
>
> A group most certainly can contain zero children - I do this all the time
> when I have nothing to display.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com

-- 
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

Reply via email to