title: How to save image inside ViewModel to handle orientation change?
body: <p>My activity contains one imageview and a button, when button is clicked the image inside the imageview is changed (works fine).</p>
  
  <p>But when screen orientation changes the image inside imageview is lost (because activity is recreated).</p>
  
  <p>I read in some post that ViewModel survives orientation and it can store large amount of data (bitmap) as compared to onSaveInstanceState.</p>
  
  <p>There are many others options to retreive the same image, but i want to use ViewModel to get that same image without getting affected by orientation change.</p>
  
  <p>So, How can i get the same image using ViewModel?</p>
  
  <p>Thankyou.</p>