android - The best way to build cache -
i have app suits on facebook, vk apps. need make cache system have offline access pages , improve time of data loading. never make cache system earlier... want listen advices people built systems. example, how save data better in database or in files. if it's database best way storage in android app cache folder or use simple built-in sqlite database... glad answers theme.
you can cache items using lrucache available in android. lrucache
as trying save json objects, effective way retrieve json objects using network library such volley
, save json string in sharedpreferences file. , can parse load view whenever want! , can cache images using networkimageview of volley lrucache! helps cache , populate images , texts trouble free ! perfect tutorial available here
also, here code implementation well!
Comments
Post a Comment