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

  • Home
  • SEARCH
  • 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 4106148
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:20:20+00:00 2026-05-20T21:20:20+00:00

I have a code below, this code works perfectly fine when you are trying

  • 0

I have a code below, this code works perfectly fine when you are trying to load one or two images. However, the problem is, when you have a lot of images in one Activity, all images must load first before you can get in. My question is, what is the best way to handle this images? I want the images to load one by one and not simultaneously. I want it to load just like the ListView made by Fedor “http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview” (Note: I’m not using a ListView, I just want my images to load like that). Please help me, I would really appreciate it a lot. Thanks in advance!

 class ImageDownlaodThread extends Thread {
  ImageDownloadMessageHandler imageDownloadMessageHandler;
  String imageUrl;



  @Override
  public void run() {
   Drawable drawable = LoadImageFromWebOperations(imageUrl);
   Message message = imageDownloadMessageHandler.obtainMessage(1, drawable);
   System.out.println("Message sent");
  }

 }

 class ImageDownloadMessageHandler extends Handler {
  View imageTextView;

  }

  @Override
  public void handleMessage(Message message) {
   progressBar.setVisibility(View.GONE);
   imageTextView.setVisibility(View.VISIBLE);
  }

 }

 Drawable LoadImageFromWebOperations(String url) {
  Drawable d = null;
  InputStream is = null;
  try {

  } catch (IOException e) {
   e.printStackTrace();
  }
  return d;
 }
  • 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-05-20T21:20:21+00:00Added an answer on May 20, 2026 at 9:20 pm

    Would this tutorial help [TUT] ImageView with Loading Spinner:

    http://www.anddev.org/novice-tutorials-f8/imageview-with-loading-spinner-t49439.html

    It basically show’s a spinner until the image has loaded from the remote site 🙂

    You could strip the code to show a blank space / whatever you want till it loads.

    If you don’t want anything to happen till it all loads, you could have a count of how many images there are and then increment this each time an image has loaded.

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

Sidebar

Related Questions

The code below works perfectly fine with Firefox, however, I am having problems with
The code below works fine but, in the textbox the decimal value has this
I am wondering why the following contrived example code works perfectly fine in Visual
I am having a very specific problem in JQuery The code below is used
I have recently been exploring the Tornado web framework to serve a lot of
I have some code that is using mechanize and a password protected site. I
OK...I've spent too much time floundering on this one, so I'm passing it on
Perl is continuing to surprise me. I have a code which takes an input
We have 2 databases, say DB1 and DB2. DB1 contains all the stored procedures
I have a driver script which manages a job string which can run jobs

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.