android - Displaying downloaded image in an imageView -


hi :) i'm trying write android application downloads bunch of images , afterwads displays them in gallery. managed download images (i did download them data/data/project directory - not sure if that's right) can't access them (i tried using setimageuri method of imageview display image after i've created uri instance via uri.builder().appendpath("data/data/project/file.jpg").build() no avail). i'm new android developing appreciated. thanks!

i started writing example, decided waste of time since net littered better examples create.

at high level, you'll need this:

  1. get 1..n file objects
  2. load bitmaps these objects using bitmapfactory
  3. load these decoded bitmaps imageview

the typical mechanism viewing set of resources adapter pattern. mentioned, there example here encompasses use of asynctask , other patterns typical of android programming should become familiar with. review , see if have further questions.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -