开发者

Android: Read app's settings from the another app

开发者 https://www.devze.com 2023-02-16 18:02 出处:网络
I have two android games, this games store their data (scores, other settings开发者_运维问答) in the app\'s settings. I would love to develop an android widget where data from these two games should b

I have two android games, this games store their data (scores, other settings开发者_运维问答) in the app's settings. I would love to develop an android widget where data from these two games should be shown. So is possible to read app's settings from the other app (in my case from the widget)? How can I do it?

Thanks, Yakov


Because you developed those two games, it makes using their data so much easier. You have a couple of options now. But for all of those options, I'd recommend enforcing a permission: Security and Permissions so that applications that you don't want accessing your data can't access it. Here are your options:

  1. SharedPreferences but using getSharedPreferences("filename", MODE_WORLD_READABLE);
  2. Internal Storage
  3. External Storage
  4. Database with a Content Provider
0

精彩评论

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