Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Super Contributor
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Does Class File exist or not? Thx,

Hi All,


I want to get filename, which can sent to server side.

Also, want to get file.list length to stop While loop.


These goal can be finish in Class File in Java.

However, I could not find out any related BB class.



Do you know which class can do these function?


Thanks  your attention,



-Fight with BB10
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Does Class File exist or not? Thx,

[ Edited ]



There is File API for BB:



But you can also check out the FileConnection API:



* It won't get you the file list size directly. list( ) returns Enumeration.