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

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

python - Received unregistered task using Celery with Django -