I have a preferences.xml which contains the following definition:
If you look at what getInt() does internally you will see the problem:
Integer v = (Integer)mMap.get(key);
Your key "limitSetting" is returning a String which cannot be cast to an Integer.
You can parse it yourself however:
int offsetProgressInitial = Integer.parseInt(sharedPref.getString("limitSetting", "10"));