android - pass a bundle of hashmap to a fragment -


I have two squares, spread a fragment activity and the other spreads the piece .

I want to pass a hash map in the bundle to the fragment class from fragment activity class. The class should draw on the basis of the hash map value, which is derived from the FragmentActivity class, and the graph "piece" part I would like to call the piece class of a fragment activity xml file to a checkbox , that means a hash should go to the class when a fixed checkbox S is my code below is Czech, which does not show any errors, but it does not work either. I tried a very small piece example, which works, but I can not work it in my actual application. I will be grateful for any help.

  Public square Graphs_Combination FragmentActivity {// Some other codes onClick at public zero (see v) {fragment fr; Fr = new drawing graph (); If (((checkbox) v.) Check ()) {ListOfCheckedFctrsNames.add ((checkbox) v) .gettext (). ToString ()); DisplayCheckedTextViews (ListOfCheckedFctrsNames); Bundle bundle = new bundle (); Bundle.putSerializable ((checkbox) v) .gettext (). ToString (), ammap); Fr.setArguments (bundle); }}  

}

  increases the public square DrawSingleGraph piece {@ Override Public View Creativity (LayoutInflator Inflator, View Group Container, Bundle Saved InstantState) { See V = Inflator .inflate (R.layout.draw_single_graph, container, incorrect); Logs. (Log, "insides dredging graph"); Bundle B = this.getArguments (); If (BATSRializable ("Depression") = Null) MAPP = (Hashmap  gt; & gt;) B. Gate Serializable ("Depression ");  

}

} This log message does not even show which does not depend on the bundle. Many thanks

You have created your formatting , but nothing has been done with it beyond you Fragment transaction Get code> activity the fragment manager and add a new piece appropriately.


Comments