Is it possible to save and restore the state (which items are collapsed and which not) of an ExpandableListView in Android?
If it is possible, how can I do that?
a simpler way could be, if you're using setOnGroupClickListner and setOnChildClickListener just keep the last selected ChildPosition and GroupPositin integer and later on check it and respond properly,
if (childPosition > 0) {
mExpandableList.expandGroup(groupPositin);
}
mExpandableList.setItemChecked(groupPositin + childPosition , true);
you just need to remember set childPosition to 0 in your setOnGroupListener method.