Pol Denais wrote: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: the XML file is like:
When application 2 is reading from Application 1's shared pref file (XML), how does it know what location to look ?
My post: The example below creates a new shared preference file in an app, adds data to it and reads it from a second app...
Pol Denais wrote:... In my application I was using the following code:
why is the mFile value /data/user/0/com.application1/shared_prefs/app1_conf.xml
Should it not be : /data/data/com.application1/shared_prefs/app1_conf.xml