title: How to get Context in Android MVVM ViewModel
body: <p>I am trying to implement MVVM pattern in my android app. I have read that ViewModels should contain no android specific code (to make testing easier), however I need to use context for various things (getting resources from xml, initializing preferences, etc). What is the best way to do this? I saw that <code>AndroidViewModel</code> has a reference to the application context, however that contains android specific code so I'm not sure if that should be in the  ViewModel. Also those tie into the Activity lifecycle events, but I am using dagger to manage the scope of components so I'm not sure how that would affect it. I am new to the MVVM pattern and Dagger so any help is appreciated!</p>