Adding dynamic elements or Images downloaded from the internet to a HorizontalFieldManager

Hello

I create an application that uses a HorizontalFieldManager to display images from an RSS feed.
As I don't know how many images is coming in rss, I created a function that takes the RSS feed Manager and reads all the fields from image on it, and then creates a toolbarButton with the URL to download the image.

The toolbarButton class is just a stretch of a BitmapField with an inner thread to download images using HTTPConnection.

Once I have the parsed RSS I call the function makeToolbar like this:

UiApplication.getUiApplication().invokeLater(new Runnable(){ public void run(){makeToolbar();}});

below the makeToolbar code:

Just to give you an update on that. The delays were due to the multiple write debug messages to a file. I created a class to manage debug logs and that fixes the problem.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for