Should we be using setTargetFragment()? I thought Fragments should not be communicating with each other
问题 The android developer tutorials recommend me using the host activities of fragments to pass around data and whatnot, so why is there a set/get target fragment method? My application thus far contains a host activity, and a fragment, which has a button that launches a DialogFragment , in which there is a button that launches ANOTHER DialogFragment . Using setTargetFragment/getTargetFragment has made this whole ordeal somewhat confusing though, so I am thinking of reimplementing to let my main