title: Should accessing SharedPreferences be done off the UI Thread?
body: <p>With the release of Gingerbread, I have been experimenting with some of the new API's, one of them being <a href="http://developer.android.com/reference/android/os/StrictMode.html" rel="noreferrer">StrictMode</a>.</p>
  
  <p>I noticed that one of the warnings is for <code>getSharedPreferences()</code>.</p>
  
  <p>This is the warning:</p>
  
  <pre><code>StrictMode policy violation; ~duration=1949 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=23 violation=2
  </code></pre>
  
  <p>and it's being given for a <code>getSharedPreferences()</code> call being made on the UI thread.</p>
  
  <p>Should <code>SharedPreferences</code> access and changes really be made off the UI thread?</p>