Sunday, 15 September 2013

Mediastore scan does not notice mp3 album artwork tagging

Mediastore scan does not notice mp3 album artwork tagging

my code changes the artwork of a single mp3 file. By opening the mp3 file
on my pc the artwork got changed but by opening the mp3 file on the
android device nothing happend. The shown artwork is still the old one.
I guess that this has sth. to do with the mediastore therefore I tried this:
Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
File f = new File(song_path);
Uri contentUri = Uri.fromFile(f);
mediaScanIntent.setData(contentUri);
FindCoverActivity.this.sendBroadcast(mediaScanIntent);
but nothing happend.
I tried another thing: By changing the artwork AND the name of the album
the mediastore immediatly noticed what was going on and by opening the mp3
file on the android phone again, the artwork gets displayed correctly with
the new artwork. But it is not my goal to change important mp3 tags like
the album name. Could this be a bug or has anyone suggestions?
Thanks!

No comments:

Post a Comment