by using mediastore.audio.media.external_content_uri, getting audio files stored in card. want fetch contents of folder music.
how fetch songs music folder sd card?
you can fetch audio specific folder using code below
string path = environment.getexternalstoragedirectory().getpath(); string selection = mediastore.audio.media.is_music + " !=" + 0 + " , " + mediastore.audio.media.data + " '" + path + "/yourfoldernamehere/%'"; just replace yourfoldernamehere music or whichever folder need
Comments
Post a Comment