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:
- get 1..n file objects
- load bitmaps these objects using bitmapfactory
- 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
Post a Comment