[android-developers] Re: Shared Preferences

2012-10-11 Thread bob
I believe the latter enables you to have multiple preference files if you thusly desire. In most cases, you will have one preference file, and the former will suffice. On Thursday, October 11, 2012 9:13:58 AM UTC-5, Mario Bat wrote: Hi, what is the difference betweent

[android-developers] Re: Shared Preferences

2012-02-11 Thread ajay talreja
thanks Poncho, but i had given suffix 'L' any how .puttin a single st e.printstack.. in catch block ...it worked.i donno logic behind that...but it did. thanks alot... On Feb 8, 12:31 am, poncho poncho...@gmail.com wrote: Hi, The code

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

2011-08-13 Thread Kristoffer
Here is MyPref.xml ?xml version='1.0' encoding='utf-8' standalone='yes' ? map int name=Int_value value=1 / string name=String_Valuetest string/string boolean name=Boolean_Value value=true / long name=Long_Value value=1234567890 / float name=Float_value value=12.5 / /map On 13 Aug, 09:26,

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

2011-08-13 Thread Appaholics
In your xml file it is Int_value. You are trying to retrieve Int_Value. Java is case sensitive. Thanks On Sat, Aug 13, 2011 at 1:14 PM, Kristoffer kris.isak.v...@gmail.comwrote: Here is MyPref.xml ?xml version='1.0' encoding='utf-8' standalone='yes' ? map int name=Int_value value=1 /

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

2011-08-13 Thread skink
On Aug 13, 9:22 am, Kristoffer kris.isak.v...@gmail.com wrote: 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);

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

2011-08-13 Thread Kristoffer
Thanks both for pointing it out to me, oh man iam sorry, that was a big misstake, i have looked over the code several hours and i dident see the problem, thanks for the help. On 13 Aug, 10:04, skink psk...@gmail.com wrote: On Aug 13, 9:22 am, Kristoffer kris.isak.v...@gmail.com wrote:

[android-developers] Re: Shared preferences not accessible in service

2009-03-03 Thread dar
See the Note on the docs: http://developer.android.com/reference/android/content/SharedPreferences.html. So, if your reader and writer are in the same process you are ok. If they are in separate processes you have to find another way to keep them in sync until the sdk supports separate

[android-developers] Re: Shared preferences not accessible in service

2009-03-03 Thread mac
Hi, as I understand you can use the option MODE_WORLD_WRITEABLE in getSharedPref to achieve this. I actually did not use this, because my service runs in the same process. Regards, Mirko On 3 Mrz., 14:27, dar dher...@gmail.com wrote: See the Note on the