Hi all,
I have some prefernces created using xml in one application . i want to access it in other application. How i can achive this?
I am using ListPrefernces . I tried to use following code in my outside application to read the prefernces but its not getting the values,
myContext = createPackageContext("com.xyz",Context.MODE_WORLD_WRITEABLE);
SharedPreferences testPrefs = myContext.getSharedPreferences("com.hcl_Kodakpreferences", Context.MODE_WORLD_READABLE);
String computerName = testPrefs.getString("firstKey", "defaultValue");
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment