android - 将文件上传到 android 中唯一的谷歌驱动器帐户

标签 android google-drive-api service-accounts

我需要构建一个应用程序,将通过该应用程序拍摄的照片上传到一个独特的谷歌驱动器帐户。已尝试 https://developers.google.com/drive/quickstart-android并构建应用程序。但它正在使用已在平板电脑中注册的谷歌帐户,而我想将其上传到一个独特的帐户。有人可以帮助我吗?

最佳答案

您应该使用服务帐户代表您的应用程序而不是在用户的驱动器上存储文件:https://developers.google.com/drive/service-accounts

关于android - 将文件上传到 android 中唯一的谷歌驱动器帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14232067/

相关文章:

android - Android 列表中的 ArrayIndexOutOFBoundsException

python - 403 错误代码 Google Drive Python 已超出此文件的下载配额

android - kindle fire 中的 google drive/docs api

python-3.x - google Drive api v3 文件上传错误

python-3.x - 通过服务器端的服务帐户使用 gmail api,避免使用 OAUTH2 GUI

android - 我想将 gmail 和 yahoo 与我的 android 应用程序集成

android - Android 的 TestFlight 替代方案

ios - Apple Mach-O 链接器错误 - Objective C

python - 使用服务帐户的 Doubleclickbid 管理器 API

java - 单个 TextView 中的多个 TypeFace