I Want to populate the Expandable Listview from the data stored in the sqlite database

99 views Asked by At

I want to populate the Expandable Listview from the data stored in the sqlite database.

my Table is

id int pk
name varchar
mobile varchare
age int

and I want to display name and when I click on that name it will show the mobile and age in expand list.

I did not get any idea, about it. If you have any solution then please help. And all answers of previous questions like this were not useful. So I am asking this question again.

I did not understand actually how to do this.

1

There are 1 answers

1
Aakash Mangukiya On

HashMap is solution for this. You have to create ArrayList with Generic class (name, age).

For Example :

HashMap<ArraList<Integer>,ArrayList<Generic class name>