Files created by the NEW Android API for Google Drive (GDAA) are not displayed

Firstly, everything looked fine until yesterday (March 12, 2014). From lunchtime, files (not folders) created by the GDAA no longer appear in the web drive interface. Several showed up with a significant delay (3 hours) and since then nothing. Android GDAA Search / Search Tool displays both files (including content) and folders, but there are only folders on the web drive. I use this code to test it , but I tried the official demo version with the same result.

+1
source share
1 answer

Fixed clearing Google Play Services cache using a standard Android device

Settings -> Apps -> Google Play Services -> Clear Cache

This is probably a seizure caused by misuse of development environment overhead. They will investigate further if he reappears.

... continued

As I dug deeper, I discovered a quirk that looks like a non-problem, but can create a big problem for application developers.

1 / suggests that the user can go to

Settings -> Apps -> Google Play Services -> Manage Space -> Clear All Data

anytime he / she decides. An application using GDAA is unaware of this action, and the device owner does not know that Google Play Services has anything to do with the application in Google Drive.

2 / At the moment when this happens, the GDAA application loses the ability to find folders / files using TITLE. Requests are not executed here (see "NO md AVAILABLE")

...
if (rslt.getStatus().isSuccess()) {
  MetadataBuffer mdb = null;
  try { 
    mdb = rslt.getMetadataBuffer();
    if (mdb == null) return null;
    dMDs = new ArrayList<DrvMD>();
    for (Metadata md : mdb) {
      if ((md == null) || (!md.isDataValid()) || (md.isTrashed())) continue;
      // NO md AVAILABLE !!! 
    }
  } finally { if (mdb != null) mdb.close(); } 
}

, , , , MAJOR .

: / Google , . ( ). ( ), :

   if (FOLDER/FILE by name exists)
    return FOLDER/FILE ID
   else
     ID = create a new FOLDER/FILE

, / /. , 2 ( DriveId), . , ? , Google Play , .

+2

Source: https://habr.com/ru/post/1531801/


All Articles