开发者

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

开发者 https://www.devze.com 2023-03-23 19:34 出处:网络
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.

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

精彩评论

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

关注公众号