title: Killed Android service and static variables
body: <p>Using Android 2.1+. I have a service that gets killed from time to time by the OS (due to memory pressure I guess).</p>
  
  <p>This service maintains some states using static member fields of classes. I'm expecting the static fields to keep their values despite the service being killed and restarted by the OS.</p>
  
  <p>But it seems that it doesn't happen like this. After a restart, static variables are reset to default value.
  Is it what is supposed to happen? Should I use another way to keep a persistent state despite kill/restart?</p>