如何将 DriveFile 作为普通文件传递?

How to Pass a DriveFile as a Common File?

我问这个问题的目的是澄清我的疑问:如何将DriveFile作为普通文件传递?我解释说,我希望 Google Drive 云中的文件作为普通文件由 android 系统执行,即:将 drivefile 转换为文件,但不激活我的应用程序的延迟和延迟执行副本,我想说的是我想制作一个文件作为从 DriveFile 访问数据的桥梁,但不复制它们,文件可以读取和写入 DriveFile。非常感谢。

您可能想访问 Introduction to the Google Drive Android API 其中指出,

The file contains a reference to the contents of the file, encapsulated in the DriveContents class, which provides access to read and write the underlying data. Access the contents using the DriveFile.open method.

有关详细信息,请参阅 Working with File Contents

希望对您有所帮助!