title: Android Arraylist store in cache
body: <p>I have two arraylist objects:</p>
  
  <pre><code>public static List&lt; Bitmap&gt; homeImages;
  public static List&lt; WPListModel&gt; newslistitems;
  </code></pre>
  
  <p>These list store the data by getting it from server, it store all images in homeImages and textual data in newslistitems...</p>
  
  <p>Now my question is whenever I open my Android App, it hits on server and store data in arraylists and display it, I want to store data in cache so whenever I open the App then first it checks in cache, if data is present then it will show otherwise normal procedure(hit on server and get the data) and if data is present then it will show the data and after opening the app it gets the latest data(after opening).</p>