Thanks for the article. I have just one question though: in a large application where DI is setup (say with Dagger) we do not take care of passing around the arg in order to create the Fragment with requiredBundle .

With this approach I see that all of possible input parameters should be passed in into the FragmentFactoryImpl , which seems not feasible enough.

I want to understand why should someone consider using this approach, when in essence this makes our lives more difficult, isn’t it? Maybe I’m missing something here?

Android enthusiast, Google Certified Android developer, Stackoverflower

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store