Images, Caching and Sprites in Android -


i've got simple (so far) android app, shows friends on google map. think latitude.

the friends represented avatar pins, images of downloaded internet.

when "friend" added, fetch avatar in background thread. don't need download avatar again (i'll check updates during app start, not fussed right now). actual images come social network (facebook, google, twitter, gravatar, etc)

now, map view always displayed, images present. performing image manupilation, stacking, etc these avatars.

given above information, here questions:

  1. where should cache these images? looking @ docs, feel disk cache best option?
  2. should think creating image sprite? remember, these images don't live in apk/resources, dynamically fetched. perhaps create per-friend sprite different image sizes require?
  3. i have access server returns these images (right return url) - should enable server instead image processing/resizing etc based on requirements, or download original image , perform processing on client application?

you can use lazy loading dynamically download users images url , store in cache. believe link out in :

https://github.com/thest1/lazylist


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -