开发者

Blackberry - Get list of files and folders on device and SD card

I am writing an app for Blackberry a开发者_JAVA百科nd will need to scan the device for certain types of media, for example, pictures, MP3s etc.

Is there an easy way to scan all the files and folders on the device itself (even just the home/user/ directory), as well as the SD card?

I'm assuming the solution is some sort of recursive algorithm whereby I get a list of directories in the current path, and scan through them, but how do I get the list of all folders (as well as files) in the path?

Thanks.


Check this link

And download zip file with FileExplorerDemo. Scroll the opened page down and click on "Slow download" button.

Otherwise you may check the JDE samples folder for this sample code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜