[android-developers] Shared preferences and integer values

2011-08-13 Thread Kristoffer
Hello. Iam using shared preferences to store some values. final SharedPreferences pref = getSharedPreferences(MyPref, MODE_PRIVATE); final SharedPreferences.Editor edit = pref.edit(); edit.putInt(Int_value, 1); edit.putString(String_Value, test string); edit.commit(); i look in the xml file

Re: [android-developers] Shared preferences and integer values

2011-08-13 Thread Appaholics
Most probably your Int_Value doesn't exist. In this case the number you specified, 200, will be assigned instead. Thanks On Sat, Aug 13, 2011 at 12:52 PM, Kristoffer kris.isak.v...@gmail.comwrote: Hello. Iam using shared preferences to store some values. final SharedPreferences pref =