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

Native Development

Reply
Developer
ankursahu19
Posts: 64
Registered: ‎03-20-2013
My Device: Z10(Red Limited Edition)

How do I do a cache images and then display in ListView.

I am using a arraydatamodel to display cached images .these images coming from the Internet. Is there any way to lazy load the images so while the text displays, the UI is not blocked and images are displayed as they are downloaded?

 


https://github.com/blackberry/Cascades-Samples/blob/master/BfB-Showcase/src/netimagemanager.cpp

 

the above link is not working as i want because the number of images are more than hundred.

 

Thanks

Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900

Re: How do I do a cache images and then display in ListView.

Do you need to cache them across app opens? You could just change the cache size in that class to be whatever you want it to be, or you could use a QNetworkDiskCache to do some level of caching for you.
Like all of my posts