title: Android SharedPreferences to getInt
body: <p>I am using <code>SharedPreferences</code> to get the "age" but encounters the following error...how could this be handled?? Thanks!</p>
  
  <pre><code>SharedPreferences settings3 = Profile.this.getSharedPreferences("MyApp",0);
  age = settings3.getInt("age",25);
  textview_age_input.setText(""+age);  //LINE 122
  </code></pre>
  
  <h1>Logcat:</h1>
  
  <pre><code>08-24 01:23:59.588: E/AndroidRuntime(15117): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0xa0
  08-24 01:23:59.588: E/AndroidRuntime(15117):    at android.content.res.Resources.getText(Resources.java:242)
  08-24 01:23:59.588: E/AndroidRuntime(15117):    at android.widget.TextView.setText(TextView.java:3806)
  08-24 01:23:59.588: E/AndroidRuntime(15117):    at com.abc.abc.Profile.onCreate(Profile.java:122)
  08-24 01:23:59.588: E/AndroidRuntime(15117):    at android.app.Activity.performCreate(Activity.java:5206)
  </code></pre>