android - How to pass a bundle of a LinkedHashMap FROM Fragment back to its Activity -
i have expandable listview in activity containing questions in groups. answers answered in fragment when user choose question.
i gather positions of child , group positions in linkedhashmap.
how send map activity?
thank you
i think simplest way pass activity simple setter:
inside activity:
private linkedhashmap linkedhashmap; public void setlinkedhashmap(linkedhashmap linkedhashmap) { this.linkedhashmap = linkedhashmap;
}
inside method in fragment:
myactivity myactivity = (myactivity) getactivity(); myactivity.setlinkedhashmap(linkedhashmap);
Comments
Post a Comment