In my Android application, I have many actions and fragments, and for the code to be read and reused, I have helper classes for each of the actions and fragments. These helper classes are responsible for everything from filling dynamic representations to checks and network-related tasks.
I am currently passing an Activity / Fragment instance for each of the helper classes. I understand that each of the assistants is created as part of the action and will be destroyed along with the activity.
Are there any advantages / disadvantages of passing a weak link to my helpers instead of a strong link?
source share