سؤال

I noticed most music player tutorials tell you to look for .mp3 files in the /sdcard/ directory, but I find this a completly dumb ideea as most people will not have the music in the root directory of the sdcard but in a subdirectory.
So how to list the music from all directories (a recoursive function to scan the card would take a very long time)?

هل كانت مفيدة؟

المحلول

I think it's not a time taking process as just a contentprovider query can do ur work. Try this Sample for this purpose.Follow drive link to download

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top