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
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
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,
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 /
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);
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:
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
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
8 matches
Mail list logo