Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't read ID3 tags after Froyo update?
    primarykey
    data
    text
    <p>I have a music player app on the Market and my users starting reporting problems with music showing up as "Unknown Artist" and "Unknown Title" after the Froyo update. I have noticed the same behavior on my Motorola Droid 2 running Froyo. Doing some googling, I find other users (and even Last.fm confirmed the issue) that "Android" is not reading/storing tags correctly. I can't find any technical/developer feedback on this issue.</p> <p>Here's the code that has been working for 6 months prior to Froyo:</p> <pre><code>String whereclause = MediaStore.Audio.Media.DATA + " = \"" + path + "\""; curSong = CR.query(MediaStore.Audio.Media .getContentUri("external"), new String[] { MediaStore.Audio.Media.TITLE, MediaStore.Audio.Media.ALBUM, MediaStore.Audio.Media.ARTIST }, whereclause, null, null); if (curSong != null) { curSong.moveToFirst(); title = curSong.getString(0); album = curSong.getString(1); artist = curSong.getString(2); } </code></pre> <p>After the query, curSong is not null, so the "if" block continues, but then I get CursorIndexOutOfBounds when trying to read <code>curSong.getString(0)</code>. Is there some new way that Froyo stores the tags in MediaStore?</p> <p>After some debugging, I find that the ID3 tags are just fine and still in the same place. The problem is with my whereclause. I am looking the song up by its path, which was previously stored in <code>MediaStore.Audi.Media.DATA</code>, but is apparently no longer there, so I'm actually getting an empty set form this query. Now I need to find where that path is stored.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload