SharedPreferences 进程间共享(英语写的比较简单就不翻译了)

As I wrote in previous post , where I described how to use preferences system, SharedPreferences object can be created and opened with Context mode constants. These constants allows to define who has access to what preference. Also it is not a secret that data contains in xml file. As I said constants allows to define access to preferences and it is not a problem to have access from other application to these files. I am going to show example how you can access preferences from other application. There is one thing which you need to understand. You create and open preferences via Context . So, to use files from other application you need to use that application’s Context .

你可能感兴趣的:(SharedPreferences 进程间共享(英语写的比较简单就不翻译了))