I have a complex data object in my Activity. A floating dialog like fragment is shown when user wants to edit data for that object. This fragment has references to some parts of
For most of the question, I found some good ways:
setArguments() seem to be retained.Fragment method onAttach() is guaranteed. Data exchanges and event registering with parent goes here. The parent can be Activity or another Fragment so checking Fragment.getParentFragment() may be needed.AsyncTaskLoader's are retained and automatically re-connected by system. Data fetching/processing code for fragment goes here.