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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:23:53+00:00 2026-06-08T05:23:53+00:00

Currently I have a working solution using threads (a new thread is instantiated and

  • 0

Currently I have a working solution using threads (a new thread is instantiated and run for each image), but I read everywhere that threads are memory expensive and to better use other solutions in Android. But not quite sure what fits better for this case (AsynchTask, a thread pool, or …?). The grid is scrollable, and if I scroll fast I’ll be instantiating hundreds of threads at the same time…

One thing which helps is to cache the images, so the threads are just created and run the first time. But anyways, I would like to optimize this first loading.

  • 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-08T05:23:55+00:00Added an answer on June 8, 2026 at 5:23 am

    I think one extra thread should be enough..I am maybe wrong, but you will have UI thread which would handle UI rendering and so on and then an AsyncTask for loading images (or thread). There you can instantiate as much parallel donwloads as possible and after each one is loaded you can send a message to the UI thread an update GridList..

    Actually when you will use some other Library for HTTP connection, it would instantiate extra thread (or asynctask) for each donwload.

    I have been working with this one and it works flawlessly .

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

Sidebar

Related Questions

I currently have this working but it requires me to have a static method
I currently have collision between 2 sprites working, using sprite.collidesWith(otherSprite) . The problem is
I am working on an IMAP client using java mail. We currently have a
I currently have a working, simple language implemented in Java using ANTLR. What I
Edit: solution added. Hi, I currently have some working albeit slow code. It merges
Currently working with Oracle, but will also need a solution for MS SQL. I
I have searched many threads so far but cant seem to find a solution.
I currently have NSXMLParser working in my viewcontroller. I would like to create a
We currently have a working php mail script, this works fine and as we
I am trying to get MSTest working with CruiseControl.Net. I currently have it working

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.