Android AppFolder listChildren MetadataBuffer在数小时后意外变为空

Android AppFolder listChildren MetadataBuffer在数小时后意外变为空,android,google-drive-api,google-drive-android-api,Android,Google Drive Api,Google Drive Android Api,我正在使用AppFolder,并成功地将文件读取/写入该文件夹。我可以在一台设备上将文件写入该文件夹,然后在另一台设备上读取(使用相同的谷歌帐户) 然而,每天早上醒来,我发现AppFolder上的listChildren返回一个空的MetadataBuffer。当我在Google Drive网站的“管理应用程序”部分查看时,我的应用程序的AppFolder中显然有一些东西(40KB) 可能的原因是什么 编辑:添加了一些代码 public void onConnected(Bundle bundl

我正在使用AppFolder,并成功地将文件读取/写入该文件夹。我可以在一台设备上将文件写入该文件夹,然后在另一台设备上读取(使用相同的谷歌帐户)

然而,每天早上醒来,我发现AppFolder上的listChildren返回一个空的MetadataBuffer。当我在Google Drive网站的“管理应用程序”部分查看时,我的应用程序的AppFolder中显然有一些东西(40KB)

可能的原因是什么

编辑:添加了一些代码

public void onConnected(Bundle bundle) {
  DriveFolder folder = Drive.DriveApi.getAppFolder(mGoogleApiClient);
  folder.listChildren(mGoogleApiClient).setResultCallback(mChildrenRetrievedCallback);

...

mChildrenRetrievedCallback = new ResultCallback<MetadataBufferResult>() {
  public void onResult(MetadataBufferResult result) {
    if (!result.getStatus().isSuccess()) {
      // oh noes!
      return;
    }
    MetadataBuffer buffer = result.getMetadataBuffer();
    // buffer.getCount() is 0
public void未连接(捆绑){
DriveFolder folder=Drive.DriveApi.getAppFolder(mGoogleApiClient);
folder.listChildren(mGoogleApiClient.setResultCallback(mChildrenRetrievedCallback);
...
McChildrenRetrievedCallback=新结果Callback(){
公共void onResult(MetadataBufferResult结果){
如果(!result.getStatus().issucess()){
//哦,不!
返回;
}
MetadataBuffer buffer=result.getMetadataBuffer();
//buffer.getCount()为0

你能显示你用来列出孩子的代码吗?如果你马上列出孩子,你会得到不同的行为吗?你说“我可以在一个设备上写一个文件并在另一个设备上读它”。。使用GDAA进行查询/读取是一件很容易的事。在两台具有相同帐户、连接wifi的设备上,即使我使用“资源”或“编码”id,也需要随机的时间进行同步,从而绕过查询。而且我无法使通知起作用,这一切都是徒劳的。