Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8050731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:08:48+00:00 2026-06-05T07:08:48+00:00

My application screen looks similar to the image attached. I have multiple rows and

  • 0

My application screen looks similar to the image attached. I have multiple rows and each row has a Bitmap image, title and description field. All the information’s are getting fetched from our supporting web-server in the form of XML. Now, I have used observer design pattern, which creates a separate thread for connecting to my remote server over HTTP, downloads and parse the XML. The XML includes the URL for image, title and description for each row.

enter image description here

I have tried few approaches so far,

Approach 1:

  • Created a separate method (drawRow()), which takes care of putting the contents together by specifying the layout.
  • And, then using the method downloadImage(), I am trying to download the remote URL from the drawRow() method. But it sucks, as it downloads using the same thread and UI gets blocked.

Approach 2:

While searching for the above issue, I came across WebBitmapField in blackberry from coderholic.com.

And, then I am using the below code from my drawRow() method. As I understand the WebBitmapField, here is using observer design pattern and the image is downloading over thread other than UI thread. It works fine when I have limited number of rows like 5 or 10. But when I have more number of rows to be drawn it throws TooManyThreads exception, as it creates a new thread for each row.

I have got this link taskworker-thread-blackberry, but not much clear with how to achieve my requirement.

As I understand, in blackberry an application can create maximum of 16 number of threads. So, now I believe. I may need to create a thread pool specifying max size to 10.

Can anyone please help me to understand and implement the thread pooling for blackberry for my current problem?

Also, I appreciate anyone giving me any other best approach which will fit for my requirement.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:08:49+00:00Added an answer on June 5, 2026 at 7:08 am

    You have everything what you need. So:

    1. Create one TaskWorker for your application (use singelton)
    2. Implement Task class from TaskWorker – DownloadImageTask (simply put everything from Runnable.run() to Task.doTask() method)
    3. Instead of new thread creation in Util.getWebData() call TaskWorker.addTask()

    There are probably more minor details but you could figure out how to finish it.

    And I think it’s better to have two method in Callback – success(byte[] data) and error(Throwable error) – to determine end result and escape converting images to String and back.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need my application run in multiple screen resolutions. Currently I have specified all
I have developed application in Android and designed one splash screen image of size
I'm creating an application which has a home screen that looks like the native
OK, this is a slightly weird question. We have a touch-screen application (i.e., no
I have a Silverlight application running full screen. Is there a way i can
i am using Flash-builder 4 and developed an application to capture screen image and
I am creating a application in I have a home screen. On that home
My iPhone application screen looks like this: When i reverse my iPhone 45 degree,
I have an application that has a good look on screens, but has a
I know that Android doesn't have an Application-level onPause the way an Activity has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.