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

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -