Default Shared preferences and textview

I originally asked this question in Srackoverflow. But I did not get any answers.

I am trying to set a text view number value to shared preferences using a string to get the values. Can anyone help with this?

Sent from my SGH-M919 using XDA Premium 4 mobile app