谷歌Android硬盘应用数据文件夹没有列出所有儿童 [英] Android Google Drive App data folder not listing all childrens

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

问题描述

我已经使用了新的谷歌游戏服务4.3备份我的应用程序数据的应用程序文件夹,从谷歌驱动器。 我跟着这个链接存储应用程序数据的说明。我检查了管理应用程序,文件似乎是无以复加。如果我尝试列出的app文件夹的孩子,他们都成功地返回。

当我在另一台设备(正常同步),安装应用程序出现问题,或者如果我卸载,并在同​​一设备上重新安装应用程序。当我试图列出app文件夹的孩子,返回的计数为0。

PS:我试着查询既:

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

  Drive.DriveApi.getAppFolder(mGoogleApiClient).queryChildren(mGoogleApiClient,查询)
 

解决方案

有一个 关于同步app文件夹已知问题应用程序卸载和重新安装后的内容。对于跨设备备份,我们推荐使用<一个href="https://developer.android.com/reference/com/google/android/gms/drive/DriveApi.html#requestSync(com.google.android.gms.common.api.GoogleApiClient)"相对=nofollow> requestSync()以确保在尝试恢复之前,应用程序文件夹中的内容同步。

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.

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: I tried querying with both:

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

and

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

解决方案

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硬盘应用数据文件夹没有列出所有儿童的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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