title: Android 10 : API 29 - java.lang.IllegalArgumentException at android.media.MediaMetadataRetriever.setDataSource
body: <p>I want to get the cover photo from audio file
  the application work for android 10+ and android 9 but in android 10 it give me an error</p>
  <pre><code>//this is my code
  
   private byte[] getAlbumArt(String uri) {
          MediaMetadataRetriever retriever = new MediaMetadataRetriever();
          retriever.setDataSource(uri);
          byte[] art = retriever.getEmbeddedPicture();
          retriever.release();
          return art;
      }
  </code></pre>
  <p>error :</p>
  <pre><code>Unknown bits set in runtime_flags: 0x8000
  2020-09-18 22:19:53.826 23193-23193/? E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.MusicPlayer.musicplayervip, PID: 23193
      java.lang.IllegalArgumentException
          at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:77)
  </code></pre>
  <p>help, please </p>