12-21-2009 01:09 PM
Ok, I am trying to figure out if it is possible to access the list of music loaded on the device using an API? I know that the device indexes the music on the SDCard, how to get at that list if it possible?
I want to write an app that plays a random song from the list and do not want to search the music for myself if I do not have to.
12-21-2009 08:08 PM
Use System.getProperty to get the path to the music folder, then use FileConnection.list to get all the songs in the folder.
12-21-2009 11:03 PM
Adding to rcmaniac25, you could give a look at the fileexplorer demo application shipped with JDE, you will get a good knowledge on usage of FileConnection APIs.
12-22-2009 09:57 AM
Thanks, I know how to do file connections, I just thought there was a DB already somewhere since when I go into the media player, it already has my files sorted by artist, album, etc anything in the meta information. I wanted to access what I assume is a pre-existing DB that the Blackberry already indexes when you insert the SD card.
12-22-2009 10:14 AM
I don't think it is possible to get that information.