Hi all,
I am facing a problem when i am reading the shared preferences
(defaults.xml) in Gingerbread-android2.3.3. Following is the code snippet, what i am using.
SharedPreferences prefs =
PreferenceManager.getDefaultSharedPreferences(this);
mystring = prefs.getString("tag_name",default_value);
When this is executed, always i am getting the default value.
The same piece of code is working upto froyo-android-2.2.
I searched in net and found there is no updation of any API in Gingerbread-android2.3.3
So i want to know what is the difference between Gingerbread and Froyo in this case?
Thanks in advance
Hareef
I am facing a problem when i am reading the shared preferences
(defaults.xml) in Gingerbread-android2.3.3. Following is the code snippet, what i am using.
SharedPreferences prefs =
PreferenceManager.getDefaultSharedPreferences(this);
mystring = prefs.getString("tag_name",default_value);
When this is executed, always i am getting the default value.
The same piece of code is working upto froyo-android-2.2.

I searched in net and found there is no updation of any API in Gingerbread-android2.3.3
So i want to know what is the difference between Gingerbread and Froyo in this case?
Thanks in advance
Hareef