Hello ArcDroid,

>From my experience, the design concept should be as follow:

We will have 2 threads:

Main Thread will provide a call back for Image Thread to set image to
ImageView.
Image Thread will download/ load the bitmap, then use the call back to
set Bitmap to ImageView.

The call back can be either a method/ function in Main Thread that's
wrapped by runOnUiThread or implemented by Handler of Main Thread.

You can also try to update the ImageView in runOnUiThread, but that's
not a good design, however, it will work.

BR,
Nam

On Sep 26, 2:45 pm, ArcDroid <[email protected]> wrote:
> Hello,
> I am trying to load a picture, then run a while loop.  The problem is
> that the program runs the while loop and doesn't load the pictures
> until the loop has finished.  Any help is appreciated.
> Thanks
> Jake

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to