SharedPreferences class allows to save application data in simple type (boolean, String, etc.) formats.
Normally they are not removed and they are supposed to persi
when you do clear data
from the device applications manager
or when you uninstall your application, the SharedPreference's file is deleted.
SharePreferences are stored inside
/data/data/packagename/shared_prefs/prefsname.xml
unless you have the android:allowBackup="true"
in your manifest. In that case they might be restored.