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

Posts: 14
Registered: ‎03-29-2013
My Device: 9800
My Carrier: Vodafone

How to get count of images stored in SD card

Hello All, 

I am using camera demo given in BB sample project.
Using that I am saving images in SD Card, as Image0, Image1, Image2 and so on..
What i want to do , show all images in gallery kind of module in my app.
With two buttons, previous and next button.
For that i need to get count of images stored in SD card.
Please tell me how  to do that.

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to get count of images stored in SD card

The basis of this will be a directory search for images, so this is a very similar question to this one:


Review that for more information. 


Code that shows you how to do this sort of thing can be found in this sample: