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

Display Thumbnails and create a Photo Picker

by Retired on ‎06-07-2010 03:05 PM - edited on ‎09-20-2010 04:54 PM by Retired (19,467 Views)

Using two previously published libraries it is simple to create a library that will resize and display a selection of images in a table. With some additional work, a Photo Picker dialog is possible.

The two libraries used are the ImageManipulator, and the TableLayoutManager. The library attached to this article can be used to create a table of thumbnails or a Photo Picker from either an array of images or a directory in the file system.

Thumbnails

2162iDD0375DBE3D4657E

 

 

Photo Picker

2163i1429CDE4791CA3B2

 

The implementation defines a Listener interface for receiving the BlackBerry smartphone user’s selection. The listener implementation receives the resized thumbnail image as well as its index in the table and the file name if a directory was specified.

Comments
by Developer
on ‎07-17-2010 01:14 AM

Thank you for publishing this code. It works great, and I was able to successfully test it on the simulator. Once I put it on the real device, it took about 20 seconds to load EACH image with GC occurring nonstop. This causes it to be unusuable. How can we make this more efficient so it can actually be put to use?

by New Developer
on ‎07-25-2010 12:06 PM

Has anyone been able to use this code on a real phone? I've tried populating the table with images from BBThumb.dat but it is still way way too slow on a real phone and is unusable.

 

by Developer
on ‎02-02-2011 01:01 PM

It's slow there too... I'm trying to load images from camera, but it's too slow.

Users Online
Currently online: 32 members 2,192 guests
Please welcome our newest community members: