Android Google Drive App 数据文件夹未列出所有儿童 [英] Android Google Drive App data folder not listing all childrens

查看:23
本文介绍了Android Google Drive App 数据文件夹未列出所有儿童的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用新的 Google Play services 4.3 将我的应用数据从 Google Drive 备份到应用文件夹".我按照此链接 Storing Application Data 中的说明进行操作.我签入了管理应用程序",文件似乎已添加.如果我尝试列出 App 文件夹的子项,它们会成功返回.

I have used the new Google Play services 4.3 to back-up my app data to the "App Folder" from Google Drive. I followed the instructions from this link Storing Application Data. I checked in "Manage Apps" and the file seems to be added. If I try to list the children of the App Folder, they are returned successfully.

当我在另一台设备上安装应用程序(正确同步),或者我在同一台设备上卸载并再次安装应用程序时,会出现此问题.当我尝试列出 App 文件夹的子项时,返回的计数为 0.

The issue appears when I install the app on another device (properly synced), or if I uninstall and install the app again on the same device. When I tried to list the children of the App Folder, the count returned is 0.

PS:我尝试同时查询:

PS: I tried querying with both:

Drive.DriveApi.getAppFolder(mGoogleApiClient).listChildren(mGoogleApiClient)

Drive.DriveApi.getAppFolder(mGoogleApiClient).queryChildren(mGoogleApiClient, query)

推荐答案

有一个关于同步应用文件夹的已知问题应用程序卸载和重新安装后的内容.对于跨设备备份,我们建议使用 requestSync() 以确保在尝试恢复之前同步应用文件夹内容.

There is a known issue regarding syncing App Folder content after app uninstallation and reinstallation. For cross device backup, we recommend using requestSync() to ensure App Folder content is synced before attempting to restore.

这篇关于Android Google Drive App 数据文件夹未列出所有儿童的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆