开发者

Android Default Shared Preferences File Readable By Multiple Apps?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜