Learning Android Development

Passing Activity Intent Data to ViewModel through Injection

Passing Everything to ViewModel without Activity involvement.

Photo by Ben White on Unsplash

Since 2017 till now, with Architecture Component in place, ViewModel had come a long way. It is starting to replace Activity/Fragment as the core of the view, having the ability to interact…

--

--

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