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:
- SharedPreferences but using
getSharedPreferences("filename", MODE_WORLD_READABLE);
- Internal Storage
- External Storage
- Database with a Content Provider
精彩评论