title: How to write an ArrayList to file and retrieve it?
body: <p>now im trying to use this</p>
  
  <pre><code>FileOutputStream fos = getContext().openFileOutput("CalEvents", Context.MODE_PRIVATE);
      ObjectOutputStream oos = new ObjectOutputStream(fos);
      oos.writeObject(returnlist);
      oos.close();
  </code></pre>
  
  <p>in order to save "returnlist" which is an ArrayList to the file "CalEvents"
  now my question is , is that the right way to do it?
  and how do i retrieve the list back?</p>
  
  <p>thanks in advance</p>