title: How do you save/store objects in SharedPreferences on Android?
body: <p>I need to get user objects in many places, which contain many fields. After login, I want to save/store these user objects. How can we implement this kind of scenario?</p>
  <p>I can't store it like this:</p>
  <pre><code>SharedPreferences.Editor prefsEditor = myPrefs.edit();
  prefsEditor.putString(&quot;BusinessUnit&quot;, strBusinessUnit);
  </code></pre>