• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps defaults.xml is not working on GingerBread-android2.3.3??

Hareef

Newbie
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.:confused:

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
 
Back
Top Bottom