mercredi 1 avril 2015

Save image and text offline in android?

I have multiple activities which consists of listviews with image and text fetched from the server. I need them to be available in when user is offline just like what facebook. I am trying to figure out the best possible way to achieve that?


I currently have 3 approaches in my mind:



  1. Save image as cache and text in shared preference or sqlite and display. But in this case mapping will be difficult.

  2. Save both image and text in SQLITE and display.

  3. Save the images in SD card and display from there.


Which approach should I choose. Or is there any other solution to it?


Aucun commentaire:

Enregistrer un commentaire