title: Context in MVVM in android
body: <p>I have started working on MVVM architecture for android application.I have a doubt that is it right to pass the context to view model ? If not then how can my view model can access the context if needed.</p>
  
  <p>I am doing the following things:</p>
  
  <ol>
  <li>Feed data using some EditText.</li>
  <li>Send this data to View model.</li>
  <li>View model send this data to repository</li>
  <li>Repository storing this data to shared preferences of the device.</li>
  </ol>
  
  <p>As shared preferences required context to instantiate the object.</p>
  
  <p>I am new to this architecture any guidance would be helpful for me, thanks in advance.</p>