Welcome!

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

Reply
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.

 

Question:

Do you know which class can do these function?

 

Thanks  your attention,

 

 

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

Re: Does Class File exist or not? Thx,

[ Edited ]

Hi,

 

There is File API for BB:

http://www.blackberry.com/developers/docs/5.0.0api/java/io/File.html

 

But you can also check out the FileConnection API:

http://www.blackberry.com/developers/docs/5.0.0api/javax/microedition/io/file/FileConnection.html

 

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

 

E.