java - Android playlist query is inaccurate...? -


this seemingly simple issue confusing me. have following code:

cursor c = getcontentresolver().query(             mediastore.audio.playlists.external_content_uri,             new string[] {mediastore.audio.playlists._id, mediastore.audio.playlists.name},             null,             null,             mediastore.audio.playlists.default_sort_order);      c.movetofirst();     log.d("testtest", string.format("count %d", c.getcount()));     (int = 0; < c.getcount(); i++) {         c.movetoposition(i);         int id = c.getint(c.getcolumnindex(mediastore.audio.playlists._id));         string s = c.getstring(c.getcolumnindex(mediastore.audio.playlists.name));         log.d("testtest", "hey!  " + s + "  " + string.format("%d", id));     } 

the count being reported 1, , apparently playlist named 'm3u playlist'.

what's going on here? have several playlists , want print list of them.

thanks answers!

well, took me long realize playlists created in 'music player' app not included in mediastore.audio.playlists....

but now.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -