I use the code
ExpandableListView expandListView = (ExpandableListView) findViewById(R.id.list);
expandListView.setAdapter(adapter);
Boolean flag = expandListView.setSelectedChild(1, 1, true);
but it didn’t work. Nothing happened. The group didn’t expand.
I found my answer here:
ExpandableListView ignores setSelectedChild()
calling ExpandableListView.expandGroup(int); did the job