title: MediaStore.Images.Media.insertImage deprecated
body: <p>I used to save images using <code>MediaStore.Images.Media.insertImage</code> but <code>insertImage</code> method is now deprecated. The <a href="https://developer.android.com/reference/android/provider/MediaStore.Images.Media#insertImage(android.content.ContentResolver,%20java.lang.String,%20java.lang.String,%20java.lang.String)" rel="noreferrer">docs</a> say: </p>
  
  <blockquote>
    <p>This method was deprecated in API level 29. inserting of images should
    be performed using <a href="https://developer.android.com/reference/android/provider/MediaStore.MediaColumns.html#IS_PENDING" rel="noreferrer">MediaColumns#IS_PENDING</a>, which offers richer
    control over lifecycle.</p>
  </blockquote>
  
  <p>I don't really get it, since <code>MediaColumns.IS_PENDING</code> is just a flag, how am I supposed to use it? </p>
  
  <p>Should I use <code>ContentValues</code> ? </p>