title: How do I serialize an object and save it to a file in Android?
body: <p>Say I have some simple class and once it's instantiated as an object I want to be able to serialize its contents to a file, and retrieve it by loading that file at some later time... I'm not sure where to start here, <strong>what do I need to do to serialize this object to a file?</strong></p>
  
  <pre><code>public class SimpleClass {
     public string name;
     public int id;
     public void save() {
         /* wtf do I do here? */
     }
     public static SimpleClass load(String file) {
         /* what about here? */
     }
  }
  </code></pre>
  
  <p>This is probably the easiest question in the world, because this is a really simple task in .NET, but in Android I'm pretty new so I'm completely lost.</p>