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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -