Basically i have a valued saved into shared preference as a string.
I am retrieving the value saved, and am trying to use it in a calculation.
How can i conv
You can parse the string as a double:
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
String weight = sharedPreferences.getString("storednewweight", "");
Double newweight = Double.parseDouble(weight);
newweight = newweight + 5;
//saves value into sharedpreference
savePreferences("storednewweight", (Double.toString(newweight)));