gpt4 book ai didi

android - 为非游戏应用程序使用 Saved Game Service

转载 作者:行者123 更新时间:2023-11-29 15:57:40 25 4
gpt4 key购买 nike

我有一个安卓(非游戏)应用程序,我想为其实现云备份。我看过 Backup API但发现它受到限制,因为实际的备份和恢复后端过程由手机制造商和谷歌控制。我还希望允许用户在需要时手动备份和恢复。

有新的Google Play Games Saved Game service它提供了我正在寻找的东西,但我的应用程序不是游戏。

有没有人为非游戏应用程序实现了保存的游戏服务,并且可以就它的适用性提供一些建议?否则,有谁知道谷歌是否会允许这种方法(将游戏服务用于非游戏应用程序)?

谢谢。

最佳答案

听起来更好的解决方案是使用 Google Drive API。具体来说,就是存储应用程序数据的能力。来自开发者文档:

The 'Application Data folder' is a special folder that is only accessible by your application. Its content is hidden from the user, and from other apps. Despite being hidden from the user, the Application Data folder is stored on the user's Drive and therefore uses the user's Drive storage quota. The Application Data folder can be used to store configuration files, saved games data, or any other types of files that the user should not tamper with.

参见:https://developers.google.com/drive/web/appdata

关于android - 为非游戏应用程序使用 Saved Game Service,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27097869/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com