title: how to persist an object in android?
body: <p>I have read some post regarding persistence methods in android</p>
  
  <p>but it still unclear to me how we can persist an object?</p>
  
  <p>please relate to session-persistence and application-lifetime presistence</p>
  
  <p>1) persist an object as long as the app is installed => i guess it means using SQlite or sharePreferences. but I want to save an object without flattening it to key-value pairs.</p>
  
  <p>2) persist an object for a session (meaning since the app is up till the user quits it) ==> I would use static variable. Any other native caching mechanism ?</p>