Google Drive Android API (GDAA) getResourceId() returning null (timing issue)

后端 未结 1 1540
北荒
北荒 2021-01-13 07:08

When testing of delete, trash functionality discussed in SO 22295903, I\'ve run into this issue.

1/ Create a file with contents

GoogleApiCl         


        
相关标签:
1条回答
  • 2021-01-13 07:41

    This happens because changes are persisted locally first, and then uploaded to the server at a (possibly) later time when we have sufficient network connectivity. Unfortunately the resource id is not available until the newly created file is committed to the server.

    Currently all you can do is wait for it to be available. We are working on some additions that will make this flow easier, so stay tuned.

    0 讨论(0)
提交回复
热议问题