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 8061485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:21:16+00:00 2026-06-05T10:21:16+00:00

This question is continuation to my previous question over stack overflow how-to-download-images-asynchronously-from-web-server . I

  • 0

This question is continuation to my previous question over stack overflow how-to-download-images-asynchronously-from-web-server . I am struggling to make the asynchronous list in blackberry. Now it is working fine for me. But it is giving me another problem now.

What I have done so far

  1. Created a list view taking value from the XML feed
  2. List is loaded with default thumbnail
  3. Created RunnableFactory, limiting the thread pool size to 5 and then adding the runnable’s to it. Runnable objects has the capability to download the image from server.
  4. Now list loads perfectly fine asynchronously.

Problem scenario

On loading of the list screen it is initializing the RunnableFactory and then starting download and render images in list. But, let say I have 50 number of rows in the list. And now 10 images downloaded successfully, and RunnableFactory is still in action. At this point press back key and then click next. Practically it should come to the list screen and then again initiate the download process freshly. But it is throwing IllegalThredState exception

My assumptions on this problem

As all the threads are running, I might have to cancel all of the threads on back key pressed. If this is the problem can you please let me know how could i do it? As i have created multiple threads how could i manage to stop all threads and then navigate back ?

This looks like a more complex system. can anyone help me to understand what else could be the possible fix for this problem?

  • 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-05T10:21:18+00:00Added an answer on June 5, 2026 at 10:21 am

    if you are using any treadpool then you shutdown otherwise you can inturupt all treads on navigate to back.

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

Sidebar

Related Questions

This is the continuation of my previous question. deleting lines from text files based
This is a continuation from a previous stackoverflow question. I've renamed some variables so
Ok this is a continuation from this question: How to make a simple Hello
This maybe a continuation from 2 of my previous question, or maybe it's a
This is a continuation from the previous stackoverflow jQuery question I asked, but I
This is a continuation question from a previous question I have asked I now
This is basically a continuation from my previous question . Seeing that my fixed
this is a continuation from a previous JQueryUI Autocomplete question, I asked . This
This question is a continuation of my previous question here zend models architecture (big
This question is in continuation to my previous question . I am trying to

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.