I have stored the names and friends in database.
For example ,
person A,and his friends B,C,D
person Z,and his friends K,L,M
person Q,and his friends P,O,N
How to retrieve values from database and display in a expandable listview.
i,e.Person A,Z,Q should be the group names and corresponding friends should be the child Name ….
Thanks in advance
Create wrapper for your person
Then put person name to your ParentView
and Friends to a Child in the BaseExpandableListAdapter