Hi GuilhE, thanks. Try consider using the GenericSavedStateViewModelFactory approach, where you could more easily get your intent.extra through. Else you’ll need to have a way to inject your intent.extra through a subcomponent builder etc, which hurts my brain how it could be done.

The problem with template is, it makes it not flexible when you face some problem that the template doesn’t solve.

Hence I personally recommend try go for some easier way, unless you are pretty sure what you’re doing, and how it works behind the scene. Else it will come and haunt you back in the future.

Written by

Passionate about learning, and sharing mobile development and others https://twitter.com/elye_project https://www.facebook.com/elye.proj

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