Ok so far I can read the value of the shared file by using the content uri: content://com.application1/shared_prefs/application1_conf.xml. Manually this pulls back the details of the XML file. Now I need some help below on my code below to read the file and pick out one value only. I don't want all the values in the Xml, just one. I then need to return this to the calling function.
Hi All,
So Im trying to solve a problem and I was previously posting on this trying to code a certain solution but I think I went up the wrong path and Android wouldn't let me access the file.
In my Android application, I'm trying to read the value stored in the shared_prefs folder of another application. That application exports a content provider.
Thanks Prasad, Im just trying to debug it as my code is showing no value returned and when I debug, I can see a path location for my own application, in that its looking for application1_conf.xml under my own app's folder:
When application 2 is reading from Application 1's shared pref file (XML), how does it know what location to look ? Application 1s shared pref files sits under its folder on the device.
HI All,
My Android app needs to read a value from an XML file stored in shared_prefs under another app and store it in a parameter in my apps code. So I have the path to the file but I don't know how to code it: