MediaMetadataRetriever in Android 2.2 and 2.3
<p>I want to use MediaMetadataRetriever to show cover of URL music.
In Android 2.2, I try below code, it works, but not in Android 2.3.3.</p>

<pre><code>MediaMetadataRetriever mmr = new MediaMetadataRetriever();
mmr.setDataSource(url);
byte[] cover_array = mmr.extractAlbumArt();
cover = BitmapFactory.decodeByteArray(cover_array, 0, cover_array.length);
</code></pre>

<p>In Android 2.3.3, I try below code, it works, but not in Android 2.2.</p>

<pre><code>MediaMetadataRetriever mmr = new MediaMetadataRetriever();
mmr.setDataSource(url);
byte[] cover_array = mmr.getEmbeddedPicture();
cover = BitmapFactory.decodeByteArray(cover_array, 0, cover_array.length);
</code></pre>

<p>getEmbeddedPicture() will compile fail in Android 2.2.
extractAlbumArt() will compile fail in Android 2.3.3.
I want to fix in Android 2.2 and 2.3.3 at the same time.
How canI do it?</p>
