android - How does facebook or instagram app retain images or data after entering the app with no internet connection? -
in facebook app, example, login internet connection. close app, turn off internet , close system tabs. though internet connection off, see images , data had been loaded still retained.
how facebook app that? should if wanted implement such feature in android app?
i use 'picasso' library caching, loading... images internet :
http://square.github.io/picasso/
automatic memory , disk caching
picasso.with(context) .load(url) .resize(50, 50) .centercrop() .into(imageview)
for data, can store data using shared preferences
small stuff or local database sqlite
Comments
Post a Comment