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

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -