谷歌Android驱动应用数据文件夹回空当我使用queryChildren [英] Android Google drive App data folder return empty when I use queryChildren

查看:239
本文介绍了谷歌Android驱动应用数据文件夹回空当我使用queryChildren的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是新的谷歌播放服务驱动API来实现备份和还原在我的Andr​​oid application.I与App文件夹中的数据,随后从谷歌驱动开发guides.I可以备份和恢复数据的成功时,我只用了intructions当我使用两台设备或unintall并重新安装应用程序,一台设备,不卸载并重新安装app.But出现问题。

I'm using the new Google play service drive api to implement backup and restore data with App folder in my android application.I followed the intructions from the google drive developer guides.I can backup and restore data successfully when I only use one device and don't uninstall and reinstall the app.But Problem appears when I use two devices or unintall and reinstall the app.

场景1:我安装我的应用程序,一台设备和备份数据到应用程序文件夹的成功,我可以看到我在谷歌改变了应用程序文件夹中的数据大小驱动管理应用程序,然后我在另一台设备上安装我的应用程序并尝试使用从谷歌驱动器还原来恢复我的第一个device.but谷歌驱动的API只是备份返回的空MetadataBuffer数据。

Scene 1: I install my app on one device and backup data to "App folder" succeed and I can see the data size of my app folder changed in Google drive "Manage apps",then I install my app on another device and try to use "restore from google drive" to restore the data I just backup on the first device.but google drive api returned empty MetadataBuffer.

场景二:我一台设备和备份数据到应用程序文件夹上安装我的应用程序成功,我也看到我在管理应用程序更改应用程序文件夹中的数据大小。然后我卸载我的应用程序,并重新安装,并尝试我backup.the同样的事情happened.There的任何文件找到我的应用程序文件夹中恢复数据。

Scene 2: I install my app on one device and backup data to "App folder" succeed and I also see the data size of my app folder changed in "Manage apps".then I uninstall my app and reinstall it and try to restore the data I backup.the same thing happened.There's no file find in my app folder.

我想API既queryChildren和listChildren,但没有运气。

I tried api with both queryChildren and listChildren but no lucky.

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

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

可以从谷歌驱动的团队的人解决这个问题呢?我认为这是一个真正的大bug.we仍然没有解决方法。

Can anyone from google drive team resolve the problem? I think it's a really big bug.we still have no resolve method.

推荐答案

我们已经确定了一个问题,这意味着应用程序文件夹的内容是不会被下载后的应用程序卸载然后重新安装的API。此问题将在谷歌Play业务的下一个版本。

We have identified an issue with the API that meant App Folder content was not downloaded after an app was uninstalled then reinstalled. This will be fixed in the next release of Google Play services.

有关发展的宗旨,您可以解决此问题,在目前的谷歌播放服务(版本6.1)通过清除谷歌Play业务数据(设置>应用程序>谷歌播放服务>管理空间>清除所有数据)。我们不建议暗示这个解决方案给最终用户,因为这很可能会清晰的数据依赖于其他应用程序。

For development purposes, you can work around this issue in the current Google Play services (version 6.1) by clearing Google Play services data (Settings > Apps > Google Play services > Manage Space > Clear all data). We don't recommend suggesting this solution to end users as this will likely clear data relied on by other apps.

问候,
丹尼尔·

Regards,
Daniel

这篇关于谷歌Android驱动应用数据文件夹回空当我使用queryChildren的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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