I managed to retrive data from the database and store it in ArrayList:
ArrayList<Category> selectCategory = select.all().from(Category.class).execute();
for (Category category: selectCategory) {
builder.append(category.name).append("\n");
}
Now I want to add that data to child element of ExpandableListView. The following code is hardcoded, and I don't want it that way. I want it to get data from database. How do I do that?
List<String> class1= new ArrayList<String>();
class1.add("English");
class1.add("Maths");
class1.add("Geo");