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

New Developer
Posts: 41
Registered: ‎02-13-2009
My Device: Not Specified

How can I get SD Card Memory info?

Can I pragmatically get memory information (total, free) of an SD card in the device?




Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: How can I get SD Card Memory info?

I have yet to try this but try FileConnection:




availableSize gives you the size of the file system (whether internal memory or SD card)




directorySize(true) gives you the size of all  directories (including subs if you set the first parameter to true).

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful