Creating a folder inside a folder in google drive android

前端 未结 3 2027
礼貌的吻别
礼貌的吻别 2021-01-05 13:47

I want to integrate Google drive with my app I have registered my app in Google Developers Console. I got a sample from https://github.com/googledrive/android-demos .By this

3条回答
  •  感情败类
    2021-01-05 13:51

    You can take a peek here: in the 'createTree()' method, there is a creation of folder within a folder.

    There are 3 different drive ID entities in the new Google Drive Android API (GDAA)

    1. the object of type DriveID - the one you get from methods and use in your code
    2. a string you get from encodeToString() and pass to decodeFromString() - used to save within the app (caching for instance)
    3. a string you get from getResourceId() and pass to fetchDriveId() - the one you see in the html address of a file.

    Both 2 and 3 identifiers are strings, so they may be confused. Identifier 2 is faster when retrieving Drive ID (via decodeFromString()). Identifier 3 is slower to retrieve (via fetchDriveId()), but usefull if you need to take your ID elsewhere (Apps Script, for instance).

    Please see also: SO 21800257

提交回复
热议问题