Skip to content Skip to sidebar Skip to footer

Mediametadataretriever In Android 2.2 And 2.3

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. MediaMetadataRetriever mmr = new MediaMetadat

Solution 1:

In spite of the docs, it actually does work fine in 2.2, based on my own testing and what I've read online.

From what I've read it actually worked in older versions of Android as well, it just wasn't documented.

I don't know why the Android docs say it was added in API Level 10 (Gingerbread MR1)...I suspect that may be when it was added to the docs?

Solution 2:

Yes you can't use it in 2.2 because MediaMetadataRetriever class is since from api level 10 (working in 2.3.3 or above )

See here:

enter image description here

Further for more Detail

Solution 3:

Why not check the OS build version at runtime and use a simple if/then to decided which method to call?

Post a Comment for "Mediametadataretriever In Android 2.2 And 2.3"