Changed prefs to getInstance(c) and the less-safe,
getInstanceWithoutContext()