Search code examples
androidgoogle-drive-android-api

How to Pass a DriveFile as a Common File?


I asked this question with the purpose of clarifying my doubt that is: How to pass DriveFile as a common file? I explain that I want to be layers that a file that is in the Google Drive cloud be executed by the android system as a common file, ie: transform a drivefile into a file, but without activating a copy of delay and delay Execution Of My application, in what I say is that I want to make a file as a bridge that accesses the data from DriveFile, but without copying them, which the file can read and write to the DriveFile. thank you very much.


Solution

  • You may want to visit Introduction to the Google Drive Android API wherein it was stated that,

    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.

    For more information, see Working with File Contents.

    Hope that helps!