In the Android API http://developer.android.com/guide/topics/data/data-storage.html#pref
It says:
Shared Preference allows you to save and re
String is an object, in android or java it isn't a primitive type at all. you can use strings to store in SharedPreferences.