title: Android - How to use SharedPreferences in non-Activity class?
body: <p>How do you use SharedPreferences in a non-Activity class? I tried making a generic Preferences utility class and importing <code>android.content.Context</code> but Eclipse still wouldn't let me use <code>getSharedPreferences()</code>.</p>