sharedPref.getInt: java.lang.String cannot be cast to java.lang.Integer
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"));