How can I have a shared prefere开发者_JAVA技巧nces file that can be read by more than one app. In particular by an admin app and the app it is administrating?
Have you tried getSharedPreferences()
with MODE_WORLD_WRITEABLE
(assuming that both apps are supposed to be able to write to it)? One of the apps will have to create a context using the package of the other app.
精彩评论