Android SharedPreferences to getInt -


i using sharedpreferences "age" encounters following error...how handled?? thanks!

sharedpreferences settings3 = profile.this.getsharedpreferences("myapp",0); age = settings3.getint("age",25); textview_age_input.settext(""+age);  //line 122 

logcat:

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):    @ android.content.res.resources.gettext(resources.java:242) 08-24 01:23:59.588: e/androidruntime(15117):    @ android.widget.textview.settext(textview.java:3806) 08-24 01:23:59.588: e/androidruntime(15117):    @ com.abc.abc.profile.oncreate(profile.java:122) 08-24 01:23:59.588: e/androidruntime(15117):    @ android.app.activity.performcreate(activity.java:5206) 


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -