-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 9/14/10 14:02 , Fabrizio Giudici wrote: > > I'm using ImageView.setImageURI() to render an image that has been > previously downloaded from the Internet. It works fine, but I > haven't understood whether the call is blocking or not. In my code, > I've implemented a background thread to download the bits, in the > meantime a placeholder is rendered, and as soon as a download is > complete, setImageURI() is called. This approach is used both for > a Gallery with thumbnails and for a single, large rendered with > ImageView. The thing is working, but I see that the application > freezes for a while when a download has been completed and > setImageURI() is called. Which make me wonders whether I'm using > it properly. > > For the record, I know that the images I'm downloading are larger > than I need (at least initially); that is, they are much larger > than the thumbnail and the large viewer. Since images, once > downloaded, are stored locally forever, I should probably create > some smaller-size previews in background and then pass them to > Gallery and ImageView? Would that make the UI really more > responsive? > Anybody here...?
- -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - "We make Java work. Everywhere." java.net/blog/fabriziogiudici - www.tidalwave.it/people fabrizio.giud...@tidalwave.it -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkySJHwACgkQeDweFqgUGxeAPgCfYWxFYRudMVkTzkLfusVUWaBS B7cAoLEKO7410fblPivzb47ozhzqX/3K =Q2i7 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en